Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a07882ec
Commit
a07882ec
authored
Feb 03, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xcopy/tests: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
63a9879a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
Makefile.in
programs/xcopy/tests/Makefile.in
+0
-1
xcopy.c
programs/xcopy/tests/xcopy.c
+7
-7
No files found.
programs/xcopy/tests/Makefile.in
View file @
a07882ec
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
xcopy.exe
C_SRCS
=
\
...
...
programs/xcopy/tests/xcopy.c
View file @
a07882ec
...
...
@@ -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=%
l
u
\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=%
l
u
\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=%
l
u
\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=%
l
u
\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=%
l
u
\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=%
l
u
\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=%
l
u
\n
"
,
rc
);
ok
(
GetFileAttributesA
(
"xcopytest2"
)
!=
INVALID_FILE_ATTRIBUTES
,
"xcopy failed to copy empty directory
\n
"
);
RemoveDirectoryA
(
"xcopytest2"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment