xcopy/tests: Enable compilation with long types.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2022-02-03 12:04:52 +01:00 committed by Alexandre Julliard
parent 63a9879aef
commit a07882ecac
2 changed files with 7 additions and 8 deletions

View File

@ -1,4 +1,3 @@
EXTRADEFS = -DWINE_NO_LONG_TYPES
TESTDLL = xcopy.exe
C_SRCS = \

View File

@ -56,18 +56,18 @@ static void test_date_format(void)
DWORD rc;
rc = runcmd("xcopy /D:20-01-2000 xcopy1 xcopytest");
ok(rc == 4, "xcopy /D:d-m-y test returned rc=%u\n", rc);
ok(rc == 4, "xcopy /D:d-m-y test returned rc=%lu\n", rc);
ok(GetFileAttributesA("xcopytest\\xcopy1") == INVALID_FILE_ATTRIBUTES,
"xcopy should not have created xcopytest\\xcopy1\n");
rc = runcmd("xcopy /D:01-20-2000 xcopy1 xcopytest");
ok(rc == 0, "xcopy /D:m-d-y test failed rc=%u\n", rc);
ok(rc == 0, "xcopy /D:m-d-y test failed rc=%lu\n", rc);
ok(GetFileAttributesA("xcopytest\\xcopy1") != INVALID_FILE_ATTRIBUTES,
"xcopy did not create xcopytest\\xcopy1\n");
DeleteFileA("xcopytest\\xcopy1");
rc = runcmd("xcopy /D:1-20-2000 xcopy1 xcopytest");
ok(rc == 0, "xcopy /D:m-d-y test failed rc=%u\n", rc);
ok(rc == 0, "xcopy /D:m-d-y test failed rc=%lu\n", rc);
ok(GetFileAttributesA("xcopytest\\xcopy1") != INVALID_FILE_ATTRIBUTES,
"xcopy did not create xcopytest\\xcopy1\n");
DeleteFileA("xcopytest\\xcopy1");
@ -78,12 +78,12 @@ static void test_parms_syntax(void)
DWORD rc;
rc = runcmd("xcopy /H/D:20-01-2000 xcopy1 xcopytest");
ok(rc == 4, "xcopy /H/D:d-m-y test returned rc=%u\n", rc);
ok(rc == 4, "xcopy /H/D:d-m-y test returned rc=%lu\n", rc);
ok(GetFileAttributesA("xcopytest\\xcopy1") == INVALID_FILE_ATTRIBUTES,
"xcopy should not have created xcopytest\\xcopy1\n");
rc = runcmd("xcopy /D:01-20-2000/H xcopy1 xcopytest");
ok(rc == 0, "xcopy /H/D:m-d-y test failed rc=%u\n", rc);
ok(rc == 0, "xcopy /H/D:m-d-y test failed rc=%lu\n", rc);
ok(GetFileAttributesA("xcopytest\\xcopy1") != INVALID_FILE_ATTRIBUTES,
"xcopy did not create xcopytest\\xcopy1\n");
DeleteFileA("xcopytest\\xcopy1");
@ -97,12 +97,12 @@ static void test_parms_syntax(void)
DeleteFileA("xcopytest\\xcopy1"); */
rc = runcmd("xcopy /D/S xcopytest xcopytest2\\");
ok(rc == 0, "xcopy /D/S test failed rc=%u\n", rc);
ok(rc == 0, "xcopy /D/S test failed rc=%lu\n", rc);
ok(GetFileAttributesA("xcopytest2") == INVALID_FILE_ATTRIBUTES,
"xcopy copied empty directory incorrectly\n");
rc = runcmd("xcopy /D/S/E xcopytest xcopytest2\\");
ok(rc == 0, "xcopy /D/S/E test failed rc=%u\n", rc);
ok(rc == 0, "xcopy /D/S/E test failed rc=%lu\n", rc);
ok(GetFileAttributesA("xcopytest2") != INVALID_FILE_ATTRIBUTES,
"xcopy failed to copy empty directory\n");
RemoveDirectoryA("xcopytest2");