msi: Test more variations of environment string prefixes.

This commit is contained in:
Hans Leidekker 2009-11-13 12:00:49 +01:00 committed by Alexandre Julliard
parent e52531ab1d
commit 84ddfd8739
1 changed files with 17 additions and 1 deletions

View File

@ -176,7 +176,11 @@ static const CHAR environment_dat[] = "Environment\tName\tValue\tComponent_\n"
"Var3\t=-MSITESTVAR3\t1\tOne\n" "Var3\t=-MSITESTVAR3\t1\tOne\n"
"Var4\tMSITESTVAR4\t1\tOne\n" "Var4\tMSITESTVAR4\t1\tOne\n"
"Var5\t-MSITESTVAR5\t\tOne\n" "Var5\t-MSITESTVAR5\t\tOne\n"
"Var6\tMSITESTVAR6\t\tOne\n"; "Var6\tMSITESTVAR6\t\tOne\n"
"Var7\t!-MSITESTVAR7\t\tOne\n"
"Var8\t!-*MSITESTVAR8\t\tOne\n"
"Var9\t=-MSITESTVAR9\t\tOne\n"
"Var10\t=MSITESTVAR10\t\tOne\n";
static const CHAR condition_dat[] = "Feature_\tLevel\tCondition\n" static const CHAR condition_dat[] = "Feature_\tLevel\tCondition\n"
"s38\ti2\tS255\n" "s38\ti2\tS255\n"
@ -6618,6 +6622,18 @@ static void test_envvar(void)
res = RegDeleteValueA(env, "MSITESTVAR6"); res = RegDeleteValueA(env, "MSITESTVAR6");
ok(res == ERROR_FILE_NOT_FOUND, "Expected ERROR_FILE_NOT_FOUND, got %d\n", res); ok(res == ERROR_FILE_NOT_FOUND, "Expected ERROR_FILE_NOT_FOUND, got %d\n", res);
res = RegDeleteValueA(env, "MSITESTVAR7");
ok(res == ERROR_FILE_NOT_FOUND, "Expected ERROR_FILE_NOT_FOUND, got %d\n", res);
res = RegDeleteValueA(env, "MSITESTVAR8");
ok(res == ERROR_FILE_NOT_FOUND, "Expected ERROR_FILE_NOT_FOUND, got %d\n", res);
res = RegDeleteValueA(env, "MSITESTVAR9");
ok(res == ERROR_FILE_NOT_FOUND, "Expected ERROR_FILE_NOT_FOUND, got %d\n", res);
res = RegDeleteValueA(env, "MSITESTVAR10");
ok(res == ERROR_FILE_NOT_FOUND, "Expected ERROR_FILE_NOT_FOUND, got %d\n", res);
RegCloseKey(env); RegCloseKey(env);
delete_pf("msitest\\cabout\\new\\five.txt", TRUE); delete_pf("msitest\\cabout\\new\\five.txt", TRUE);