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
3022ade3
Commit
3022ade3
authored
Jan 06, 2006
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add a regression test for _fullpath.
parent
e09a6c80
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
0 deletions
+60
-0
.gitignore
dlls/msvcrt/tests/.gitignore
+1
-0
Makefile.in
dlls/msvcrt/tests/Makefile.in
+1
-0
dir.c
dlls/msvcrt/tests/dir.c
+58
-0
No files found.
dlls/msvcrt/tests/.gitignore
View file @
3022ade3
Makefile
cpp.ok
dir.ok
environ.ok
file.ok
headers.ok
...
...
dlls/msvcrt/tests/Makefile.in
View file @
3022ade3
...
...
@@ -9,6 +9,7 @@ EXTRAINCL = -I$(TOPSRCDIR)/include/msvcrt -I$(SRCDIR)/..
CTESTS
=
\
cpp.c
\
dir.c
\
environ.c
\
file.c
\
headers.c
\
...
...
dlls/msvcrt/tests/dir.c
0 → 100644
View file @
3022ade3
/*
* Unit test suite for dir functions
*
* Copyright 2006 CodeWeavers, Aric Stewart
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "wine/test.h"
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <io.h>
#include <windef.h>
#include <winbase.h>
#include <winnls.h>
#include <process.h>
#include <errno.h>
void
test_fullpath
()
{
char
full
[
MAX_PATH
];
char
*
freeme
;
SetCurrentDirectory
(
"C:
\\
Windows
\\
System
\\
"
);
ok
(
_fullpath
(
full
,
"test"
,
MAX_PATH
)
>
0
,
"_fullpath failed
\n
"
);
ok
(
strcmp
(
full
,
"C:
\\
Windows
\\
System
\\
test"
)
==
0
,
"Invalid Path
\n
"
);
ok
(
_fullpath
(
full
,
"
\\
test"
,
MAX_PATH
)
>
0
,
"_fullpath failed
\n
"
);
ok
(
strcmp
(
full
,
"C:
\\
test"
)
==
0
,
"Invalid Path
\n
"
);
ok
(
_fullpath
(
full
,
"..
\\
test"
,
MAX_PATH
)
>
0
,
"_fullpath failed
\n
"
);
ok
(
strcmp
(
full
,
"C:
\\
Windows
\\
test"
)
==
0
,
"Invalid Path
\n
"
);
ok
(
_fullpath
(
full
,
"..
\\
test"
,
10
)
==
NULL
,
"_fullpath failed to generate error
\n
"
);
freeme
=
_fullpath
(
NULL
,
"test"
,
0
);
ok
(
freeme
!=
NULL
,
"No path returned
\n
"
);
ok
(
strcmp
(
freeme
,
"C:
\\
Windows
\\
System
\\
test"
)
==
0
,
"Invalid Path
\n
"
);
free
(
freeme
);
}
START_TEST
(
dir
)
{
test_fullpath
();
}
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