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
c895879e
Commit
c895879e
authored
Aug 28, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed system specific GetTempPathA test.
parent
d4304f8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
path.c
dlls/kernel/tests/path.c
+1
-13
No files found.
dlls/kernel/tests/path.c
View file @
c895879e
...
...
@@ -24,9 +24,6 @@
#include "winuser.h"
#include "winerror.h"
#define WIN2K_PLUS(version) (version.dwMajorVersion==5)
#define WIN98_PLUS(version) (version.dwMajorVersion==4 && \
version.dwMinorVersion>0)
#define HAS_TRAIL_SLASH_A(string) (string[lstrlenA(string)-1]=='\\')
#define LONGFILE "Long File test.path"
...
...
@@ -40,7 +37,6 @@
#define NOT_A_VALID_DRIVE '@'
static
OSVERSIONINFOA
version
;
/* the following characters don't work well with GetFullPathNameA
in Win98. I don't know if this is a FAT thing, or if it is an OS thing
but I don't test these characters now.
...
...
@@ -354,13 +350,7 @@ static void test_InitPathA(CHAR *newdir, CHAR *curDrive, CHAR *otherDrive)
len1
=
GetTempPathA
(
len
,
tmpstr
);
ok
(
len1
==
len
+
1
,
"GetTempPathA should return string length %ld instead of %ld"
,
len
+
1
,
len1
);
if
(
WIN2K_PLUS
(
version
))
{
/* in Win2k, the path won't be modified, but in win98, wine it is */
todo_wine
{
ok
(
lstrcmpiA
(
tmpstr
,
"aaaaaaaa"
)
==
0
,
"GetTempPathA should not have modified the buffer"
);
}
}
/* Test GetTmpFileNameA
The only test we do here is whether GetTempFileNameA passes or not.
We do not thoroughly test this function yet (specifically, whether
...
...
@@ -961,8 +951,6 @@ static void test_GetTempPath(void)
START_TEST
(
path
)
{
CHAR
origdir
[
MAX_PATH
],
curdir
[
MAX_PATH
],
curDrive
,
otherDrive
;
version
.
dwOSVersionInfoSize
=
sizeof
(
OSVERSIONINFOA
);
ok
(
GetVersionExA
(
&
version
),
"GetVersionEx failed: %ld"
,
GetLastError
());
pGetLongPathNameA
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"kernel32.dll"
),
"GetLongPathNameA"
);
test_InitPathA
(
curdir
,
&
curDrive
,
&
otherDrive
);
...
...
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