Commit a07882ec authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

xcopy/tests: Enable compilation with long types.

parent 63a9879a
EXTRADEFS = -DWINE_NO_LONG_TYPES
TESTDLL = xcopy.exe
C_SRCS = \
......
......@@ -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");
......
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