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
b08f7fd8
Commit
b08f7fd8
authored
Apr 19, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Apr 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Fix a few failing tests in win95.
parent
9f859b45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
files.c
dlls/advpack/tests/files.c
+14
-2
No files found.
dlls/advpack/tests/files.c
View file @
b08f7fd8
...
...
@@ -402,8 +402,10 @@ static void test_ExtractFiles(void)
/* extract all files in the cab to nonexistent destination directory */
hr
=
pExtractFiles
(
"extract.cab"
,
destFolder
,
0
,
NULL
,
NULL
,
0
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_PATH_NOT_FOUND
),
"Expected %d, got %d
\n
"
,
HRESULT_FROM_WIN32
(
ERROR_PATH_NOT_FOUND
),
hr
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_PATH_NOT_FOUND
)
||
hr
==
E_FAIL
,
/* win95 */
"Expected %08x or %08x, got %08x
\n
"
,
E_FAIL
,
HRESULT_FROM_WIN32
(
ERROR_PATH_NOT_FOUND
),
hr
);
ok
(
!
DeleteFileA
(
"dest
\\
a.txt"
),
"Expected dest
\\
a.txt to not exist
\n
"
);
ok
(
!
DeleteFileA
(
"dest
\\
testdir
\\
c.txt"
),
"Expected dest
\\
testdir
\\
c.txt to not exist
\n
"
);
ok
(
!
RemoveDirectoryA
(
"dest
\\
testdir"
),
"Expected dest
\\
testdir to not exist
\n
"
);
...
...
@@ -470,9 +472,19 @@ static void test_ExtractFiles(void)
static
void
test_AdvInstallFile
(
void
)
{
HRESULT
hr
;
HMODULE
hmod
;
char
CURR_DIR
[
MAX_PATH
];
char
destFolder
[
MAX_PATH
];
hmod
=
LoadLibrary
(
"setupapi.dll"
);
if
(
!
hmod
)
{
skip
(
"setupapi.dll not present
\n
"
);
return
;
}
FreeLibrary
(
hmod
);
GetCurrentDirectoryA
(
MAX_PATH
,
CURR_DIR
);
lstrcpyA
(
destFolder
,
CURR_DIR
);
...
...
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