Zhenbo Li : kernel32/tests: Add one more test for FindFirstFileA.
Alexandre Julliard
julliard at winehq.org
Thu Jan 2 13:13:48 CST 2014
Module: wine
Branch: master
Commit: 767c09f16f1e02912a21fbe3863a24380b08a07e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=767c09f16f1e02912a21fbe3863a24380b08a07e
Author: Zhenbo Li <litimetal at gmail.com>
Date: Tue Dec 31 13:05:41 2013 +0800
kernel32/tests: Add one more test for FindFirstFileA.
---
dlls/kernel32/tests/file.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/tests/file.c b/dlls/kernel32/tests/file.c
index 3ac4be8..7101e7b 100644
--- a/dlls/kernel32/tests/file.c
+++ b/dlls/kernel32/tests/file.c
@@ -2430,6 +2430,14 @@ static void test_FindFirstFileA(void)
ok ( err == ERROR_PATH_NOT_FOUND, "Bad Error number %d\n", err );
}
+ /* try FindFirstFileA without trailing backslash */
+ SetLastError( 0xdeadbeaf );
+ strcpy(buffer2, nonexistent);
+ handle = FindFirstFileA(buffer2, &data);
+ err = GetLastError();
+ ok ( handle == INVALID_HANDLE_VALUE, "FindFirstFile on %s should Fail\n", buffer2 );
+ ok ( err == ERROR_FILE_NOT_FOUND, "Bad Error number %d\n", err );
+
/* try FindFirstFileA on "C:\foo\bar.txt" */
SetLastError( 0xdeadbeaf );
strcpy(buffer2, nonexistent);
More information about the wine-cvs
mailing list