Octavian Voicu : shell32/tests: Add a todo for two recycle bin tests in case no item was added.

Alexandre Julliard julliard at winehq.org
Thu Sep 1 11:55:59 CDT 2011


Module: wine
Branch: master
Commit: 9b29b10e2325b4cc07a82258ddac74dc2ec1cb3e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9b29b10e2325b4cc07a82258ddac74dc2ec1cb3e

Author: Octavian Voicu <octavian.voicu at gmail.com>
Date:   Thu Sep  1 09:53:02 2011 +0300

shell32/tests: Add a todo for two recycle bin tests in case no item was added.

---

 dlls/shell32/tests/recyclebin.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/tests/recyclebin.c b/dlls/shell32/tests/recyclebin.c
index 2fa4d3e..391e025 100644
--- a/dlls/shell32/tests/recyclebin.c
+++ b/dlls/shell32/tests/recyclebin.c
@@ -90,8 +90,13 @@ static void test_query_recyclebin(void)
     ok(!pSHFileOperationA(&shfo), "Deletion was not successful\n");
     hr = pSHQueryRecycleBinA(buf,&info2);
     ok(hr == S_OK, "SHQueryRecycleBinW failed with error 0x%x\n", hr);
-    ok(info2.i64Size==info1.i64Size+written,"Expected recycle bin to have 0x%s bytes\n",str_from_int64(info1.i64Size+written));
-    ok(info2.i64NumItems==info1.i64NumItems+1,"Expected recycle bin to have 0x%s items\n",str_from_int64(info1.i64NumItems+1));
+    if(info2.i64Size!=info1.i64Size || info2.i64NumItems!=info1.i64NumItems) {
+      ok(info2.i64Size==info1.i64Size+written,"Expected recycle bin to have 0x%s bytes\n",str_from_int64(info1.i64Size+written));
+      ok(info2.i64NumItems==info1.i64NumItems+1,"Expected recycle bin to have 0x%s items\n",str_from_int64(info1.i64NumItems+1));
+    } else todo_wine {
+      ok(info2.i64Size==info1.i64Size+written,"Expected recycle bin to have 0x%s bytes\n",str_from_int64(info1.i64Size+written));
+      ok(info2.i64NumItems==info1.i64NumItems+1,"Expected recycle bin to have 0x%s items\n",str_from_int64(info1.i64NumItems+1));
+    }
 }
 
 




More information about the wine-cvs mailing list