Paul Vriens : ole32/tests: Fix a test failure on several platforms.
Alexandre Julliard
julliard at winehq.org
Tue Dec 22 09:58:57 CST 2009
Module: wine
Branch: master
Commit: 25d15c68dc91ebf91478513d226567dc2ce92211
URL: http://source.winehq.org/git/wine.git/?a=commit;h=25d15c68dc91ebf91478513d226567dc2ce92211
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Mon Dec 21 18:51:18 2009 +0100
ole32/tests: Fix a test failure on several platforms.
---
dlls/ole32/tests/storage32.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/ole32/tests/storage32.c b/dlls/ole32/tests/storage32.c
index 07ac810..2011375 100644
--- a/dlls/ole32/tests/storage32.c
+++ b/dlls/ole32/tests/storage32.c
@@ -999,7 +999,9 @@ static void test_streamenum(void)
/* the storage is left open until the enumerator is freed */
r = StgOpenStorage( filename, NULL, STGM_SHARE_EXCLUSIVE |
STGM_READWRITE |STGM_TRANSACTED, NULL, 0, &stg);
- ok(r==STG_E_SHAREVIOLATION, "StgCreateDocfile failed, res=%x\n", r);
+ ok(r==STG_E_SHAREVIOLATION ||
+ r==STG_E_LOCKVIOLATION, /* XP-SP2/W2K3-SP1 and below */
+ "StgCreateDocfile failed, res=%x\n", r);
r = IEnumSTATSTG_Release(ee);
ok (r == 0, "enum not released\n");
More information about the wine-cvs
mailing list