Mikołaj Zalewski : browseui/tests: make the ACLMulti test pass under Windows Vista.
Alexandre Julliard
julliard at winehq.org
Fri Feb 15 05:36:07 CST 2008
Module: wine
Branch: master
Commit: c9492a5bf400f47bce5de6a3e48bb7ae121e188c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c9492a5bf400f47bce5de6a3e48bb7ae121e188c
Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date: Wed Feb 13 18:24:19 2008 +0100
browseui/tests: make the ACLMulti test pass under Windows Vista.
---
dlls/browseui/tests/autocomplete.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/dlls/browseui/tests/autocomplete.c b/dlls/browseui/tests/autocomplete.c
index ba52b66..bddaa52 100644
--- a/dlls/browseui/tests/autocomplete.c
+++ b/dlls/browseui/tests/autocomplete.c
@@ -273,7 +273,8 @@ static void test_ACLMulti(void)
ole_ok(acl->lpVtbl->Expand(acl, exp));
ok(acl1->expcount == 1, "expcount - expected 1, got %d\n", acl1->expcount);
- ok(acl2->expcount == 0, "expcount - expected 0, got %d\n", acl2->expcount);
+ ok(acl2->expcount == 0 /* XP */ || acl2->expcount == 1 /* Vista */,
+ "expcount - expected 0 or 1, got %d\n", acl2->expcount);
ole_ok(obj->lpVtbl->Next(obj, 15, wstrtab, &i));
ok(i == 1, "Expected i == 1, got %d\n", i);
@@ -282,15 +283,18 @@ static void test_ACLMulti(void)
ole_ok(obj->lpVtbl->Next(obj, 15, wstrtab, &i));
ole_ok(acl->lpVtbl->Expand(acl, exp));
ok(acl1->expcount == 2, "expcount - expected 1, got %d\n", acl1->expcount);
- ok(acl2->expcount == 0, "expcount - expected 0, got %d\n", acl2->expcount);
+ ok(acl2->expcount == 0 /* XP */ || acl2->expcount == 2 /* Vista */,
+ "expcount - expected 0 or 2, got %d\n", acl2->expcount);
acl1->expret = S_FALSE;
ole_ok(acl->lpVtbl->Expand(acl, exp));
ok(acl1->expcount == 3, "expcount - expected 1, got %d\n", acl1->expcount);
- ok(acl2->expcount == 1, "expcount - expected 0, got %d\n", acl2->expcount);
+ ok(acl2->expcount == 1 /* XP */ || acl2->expcount == 3 /* Vista */,
+ "expcount - expected 0 or 3, got %d\n", acl2->expcount);
acl1->expret = E_NOTIMPL;
ole_ok(acl->lpVtbl->Expand(acl, exp));
ok(acl1->expcount == 4, "expcount - expected 1, got %d\n", acl1->expcount);
- ok(acl2->expcount == 2, "expcount - expected 0, got %d\n", acl2->expcount);
+ ok(acl2->expcount == 2 /* XP */ || acl2->expcount == 4 /* Vista */,
+ "expcount - expected 0 or 4, got %d\n", acl2->expcount);
acl2->expret = E_OUTOFMEMORY;
ok(acl->lpVtbl->Expand(acl, exp) == E_OUTOFMEMORY, "Unexpected Expand return\n");
acl2->expret = E_FAIL;
More information about the wine-cvs
mailing list