Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2b3c19fe
Commit
2b3c19fe
authored
Aug 06, 2007
by
Peter Beutner
Committed by
Alexandre Julliard
Aug 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _makepath() tests.
parent
ea37fa99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
dir.c
dlls/msvcrt/tests/dir.c
+17
-0
No files found.
dlls/msvcrt/tests/dir.c
View file @
2b3c19fe
...
...
@@ -31,6 +31,22 @@
#include <process.h>
#include <errno.h>
static
void
test_makepath
(
void
)
{
char
buffer
[
MAX_PATH
];
_makepath
(
buffer
,
"C"
,
"
\\
foo"
,
"dummy"
,
"txt"
);
ok
(
strcmp
(
buffer
,
"C:
\\
foo
\\
dummy.txt"
)
==
0
,
"unexpected result: %s
\n
"
,
buffer
);
_makepath
(
buffer
,
"C:"
,
"
\\
foo
\\
"
,
"dummy"
,
".txt"
);
ok
(
strcmp
(
buffer
,
"C:
\\
foo
\\
dummy.txt"
)
==
0
,
"unexpected result: %s
\n
"
,
buffer
);
/* this works with native and e.g. Freelancer depends on it */
strcpy
(
buffer
,
"foo"
);
_makepath
(
buffer
,
NULL
,
buffer
,
"dummy.txt"
,
NULL
);
todo_wine
{
ok
(
strcmp
(
buffer
,
"foo
\\
dummy.txt"
)
==
0
,
"unexpected result: %s
\n
"
,
buffer
);
}
}
static
void
test_fullpath
(
void
)
{
char
full
[
MAX_PATH
];
...
...
@@ -91,4 +107,5 @@ static void test_fullpath(void)
START_TEST
(
dir
)
{
test_fullpath
();
test_makepath
();
}
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