Commit c4aa0737 authored by Ryan Cumming's avatar Ryan Cumming Committed by Alexandre Julliard

Add test for DeleteFileA with empty paths.

parent 9398d9c1
......@@ -571,6 +571,14 @@ void test_CreateFileW(void)
ok(ret, "DeleteFileW: error %ld\n", GetLastError());
}
static void test_DeleteFileA( void )
{
BOOL ret;
ret = DeleteFileA("");
ok((!ret) && (GetLastError() == ERROR_FILE_NOT_FOUND),
"DeleteFile should fail with an empty path, and last error value should be ERROR_FILE_NOT_FOUND");
}
#define PATTERN_OFFSET 0x10
void test_offset_in_overlapped_structure(void)
......@@ -648,5 +656,6 @@ START_TEST(file)
test_CopyFileW();
test_CreateFileA();
test_CreateFileW();
test_DeleteFileA();
test_offset_in_overlapped_structure();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment