From cc7859f560e4b709c6249bdf1ffc1897972cd07d Mon Sep 17 00:00:00 2001 From: Reece H. Dunn Date: Thu, 24 Jan 2008 00:50:13 +0000 Subject: [PATCH] user32: make the listbox tests pass in directories other than dlls/user32/tests. --- dlls/user32/tests/listbox.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/dlls/user32/tests/listbox.c b/dlls/user32/tests/listbox.c index 3645190..f1a7b2b 100644 --- a/dlls/user32/tests/listbox.c +++ b/dlls/user32/tests/listbox.c @@ -560,6 +560,8 @@ static void test_listbox_LB_DIR() char * p; char driveletter; + fclose( fopen( "wtest1.tmp.c", "w" ) ); + /* NOTE: for this test to succeed, there must be no subdirectories under the current directory. In addition, there must be at least one file that fits the wildcard w*.c . Normally, the test @@ -965,6 +967,8 @@ static void test_listbox_LB_DIR() ok( driveletter >= 'a' && driveletter <= 'z', "Drive letter not in range a..z, got ascii %d\n", driveletter); } DestroyWindow(hList); + + DeleteFileA( "wtest1.tmp.c" ); } HWND g_listBox; @@ -1046,6 +1050,8 @@ static void test_listbox_dlgdir(void) char * p; char driveletter; + fclose( fopen( "wtest1.tmp.c", "w" ) ); + /* NOTE: for this test to succeed, there must be no subdirectories under the current directory. In addition, there must be at least one file that fits the wildcard w*.c . Normally, the test @@ -1436,6 +1442,8 @@ static void test_listbox_dlgdir(void) } } DestroyWindow(hWnd); + + DeleteFileA( "wtest1.tmp.c" ); } START_TEST(listbox) -- 1.5.3.5