Paul Vriens : shlwapi/tests: Turn printf into trace or skip.

Alexandre Julliard julliard at winehq.org
Wed Apr 2 16:36:19 CDT 2008


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

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Wed Apr  2 16:51:11 2008 +0200

shlwapi/tests: Turn printf into trace or skip.

---

 dlls/shlwapi/tests/istream.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dlls/shlwapi/tests/istream.c b/dlls/shlwapi/tests/istream.c
index df83786..8eac740 100644
--- a/dlls/shlwapi/tests/istream.c
+++ b/dlls/shlwapi/tests/istream.c
@@ -192,7 +192,7 @@ static void test_SHCreateStreamOnFileA(DWORD mode)
     ULONG refcount;
     static const char * test_file = "c:\\test.txt";
 
-    printf("SHCreateStreamOnFileA: testing mode %d\n", mode);
+    trace("SHCreateStreamOnFileA: testing mode %d\n", mode);
 
     /* invalid arguments */
 
@@ -287,7 +287,7 @@ static void test_SHCreateStreamOnFileW(DWORD mode)
     ULONG refcount;
     static const WCHAR test_file[] = { 'c', ':', '\\', 't', 'e', 's', 't', '.', 't', 'x', 't' };
 
-    printf("SHCreateStreamOnFileW: testing mode %d\n", mode);
+    trace("SHCreateStreamOnFileW: testing mode %d\n", mode);
 
     /* invalid arguments */
 
@@ -384,7 +384,7 @@ static void test_SHCreateStreamOnFileEx(DWORD mode, DWORD stgm)
     ULONG refcount;
     static const WCHAR test_file[] = { 'c', ':', '\\', 't', 'e', 's', 't', '.', 't', 'x', 't' };
 
-    printf("SHCreateStreamOnFileEx: testing mode %d, STGM flags %08x\n", mode, stgm);
+    trace("SHCreateStreamOnFileEx: testing mode %d, STGM flags %08x\n", mode, stgm);
 
     /* invalid arguments */
 
@@ -415,7 +415,7 @@ static void test_SHCreateStreamOnFileEx(DWORD mode, DWORD stgm)
           "SHCreateStreamOnFileEx: expected E_INVALIDARG or HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), got 0x%08x\n", ret);
 
         if (ret == E_INVALIDARG) {
-            printf("SHCreateStreamOnFileEx: STGM_TRANSACTED not supported in this configuration... skipping.\n");
+            skip("SHCreateStreamOnFileEx: STGM_TRANSACTED not supported in this configuration.\n");
             return;
         }
     } else {
@@ -554,13 +554,13 @@ START_TEST(istream)
     pSHCreateStreamOnFileEx = (void*)GetProcAddress(hShlwapi, "SHCreateStreamOnFileEx");
 
     if (!pSHCreateStreamOnFileA)
-        printf("SHCreateStreamOnFileA not found... those tests will be skipped.\n");
+        skip("SHCreateStreamOnFileA not found.\n");
 
     if (!pSHCreateStreamOnFileW)
-        printf("SHCreateStreamOnFileW not found... those tests will be skipped.\n");
+        skip("SHCreateStreamOnFileW not found.\n");
 
     if (!pSHCreateStreamOnFileEx)
-        printf("SHCreateStreamOnFileEx not found... those tests will be skipped.\n");
+        skip("SHCreateStreamOnFileEx not found.\n");
 
     for (i = 0; i != sizeof(stgm_access)/sizeof(stgm_access[0]); i++) {
         if (pSHCreateStreamOnFileA)




More information about the wine-cvs mailing list