58 rc =
runcmd(
"xcopy /D:20-01-2000 xcopy1 xcopytest");
59 ok(rc == 4,
"xcopy /D:d-m-y test returned rc=%u\n", rc);
61 "xcopy should not have created xcopytest\\xcopy1\n");
63 rc =
runcmd(
"xcopy /D:01-20-2000 xcopy1 xcopytest");
64 ok(rc == 0,
"xcopy /D:m-d-y test failed rc=%u\n", rc);
66 "xcopy did not create xcopytest\\xcopy1\n");
69 rc =
runcmd(
"xcopy /D:1-20-2000 xcopy1 xcopytest");
70 ok(rc == 0,
"xcopy /D:m-d-y test failed rc=%u\n", rc);
72 "xcopy did not create xcopytest\\xcopy1\n");
80 rc =
runcmd(
"xcopy /H/D:20-01-2000 xcopy1 xcopytest");
81 ok(rc == 4,
"xcopy /H/D:d-m-y test returned rc=%u\n", rc);
83 "xcopy should not have created xcopytest\\xcopy1\n");
85 rc =
runcmd(
"xcopy /D:01-20-2000/H xcopy1 xcopytest");
86 ok(rc == 0,
"xcopy /H/D:m-d-y test failed rc=%u\n", rc);
88 "xcopy did not create xcopytest\\xcopy1\n");
99 rc =
runcmd(
"xcopy /D/S xcopytest xcopytest2\\");
100 ok(rc == 0,
"xcopy /D/S test failed rc=%u\n", rc);
102 "xcopy copied empty directory incorrectly\n");
104 rc =
runcmd(
"xcopy /D/S/E xcopytest xcopytest2\\");
105 ok(rc == 0,
"xcopy /D/S/E test failed rc=%u\n", rc);
107 "xcopy failed to copy empty directory\n");
117 rc =
runcmd(
"xcopy xcopy1 xcopytest");
118 ok(rc == 0,
"xcopy failed to copy read only file\n");
120 "xcopy should not have copied file permissions\n");
124 rc =
runcmd(
"xcopy /K xcopy1 xcopytest");
125 ok(rc == 0,
"xcopy failed to copy read only file with /k\n");
127 "xcopy did not keep file permissions\n");
150 skip(
"skipping xcopy tests\n");
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
#define INVALID_HANDLE_VALUE
#define CreateFileA(a, b, c, d, e, f, g)
#define HeapFree(x, y, z)
#define FILE_ATTRIBUTE_NORMAL
BOOL WINAPI DeleteFileA(IN LPCSTR lpFileName)
BOOL WINAPI RemoveDirectoryA(IN LPCSTR lpPathName)
BOOL WINAPI CreateDirectoryA(IN LPCSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
BOOL WINAPI SetFileAttributesA(LPCSTR lpFileName, DWORD dwFileAttributes)
DWORD WINAPI GetFileAttributesA(LPCSTR lpFileName)
BOOL WINAPI SetCurrentDirectoryA(IN LPCSTR lpPathName)
DWORD WINAPI GetTempPathA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
BOOL WINAPI GetExitCodeProcess(IN HANDLE hProcess, IN LPDWORD lpExitCode)
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessA(LPCSTR lpApplicationName, LPSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCSTR lpCurrentDirectory, LPSTARTUPINFOA lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
BOOL WINAPI TerminateProcess(IN HANDLE hProcess, IN UINT uExitCode)
static void test_parms_syntax(void)
static DWORD runcmd(const char *cmd)
static void test_keep_attributes(void)
static void test_date_format(void)
#define FILE_ATTRIBUTE_READONLY
static char tmpdir[MAX_PATH]
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
#define INVALID_FILE_ATTRIBUTES
struct _STARTUPINFOA STARTUPINFOA
#define CREATE_NEW_CONSOLE