[PATCH] odbccp32/test: Correct tests without privileges
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Tue Nov 17 23:09:19 CST 2015
Fixes https://bugs.winehq.org/show_bug.cgi?id=39230
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
dlls/odbccp32/tests/misc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/odbccp32/tests/misc.c b/dlls/odbccp32/tests/misc.c
index b3c5404..505ce1b 100644
--- a/dlls/odbccp32/tests/misc.c
+++ b/dlls/odbccp32/tests/misc.c
@@ -112,6 +112,11 @@ static void test_SQLInstallDriverManager(void)
/* Length OK */
bool_ret = SQLInstallDriverManager(target_path, MAX_PATH, NULL);
sql_ret = SQLInstallerErrorW(1, &error_code, NULL, 0, NULL);
+ if(!bool_ret && error_code == ODBC_ERROR_WRITING_SYSINFO_FAILED)
+ {
+ win_skip("not enough privileges\n");
+ return;
+ }
ok(bool_ret, "SQLInstallDriverManager unexpectedly failed: %d\n",
error_code);
if (bool_ret)
--
2.6.2
More information about the wine-patches
mailing list