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
437a3aab
Commit
437a3aab
authored
May 19, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
May 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack/tests: Don't hardcode the system directory.
parent
be55a4bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
install.c
dlls/advpack/tests/install.c
+6
-3
No files found.
dlls/advpack/tests/install.c
View file @
437a3aab
...
...
@@ -86,6 +86,9 @@ static void test_RunSetupCommand(void)
HANDLE
hexe
;
char
path
[
MAX_PATH
];
char
dir
[
MAX_PATH
];
char
systemdir
[
MAX_PATH
];
GetSystemDirectoryA
(
systemdir
,
sizeof
(
systemdir
));
/* try an invalid cmd name */
hr
=
pRunSetupCommand
(
NULL
,
NULL
,
"Install"
,
"Dir"
,
"Title"
,
NULL
,
0
,
NULL
);
...
...
@@ -97,7 +100,7 @@ static void test_RunSetupCommand(void)
/* try to run a nonexistent exe */
hexe
=
(
HANDLE
)
0xdeadbeef
;
hr
=
pRunSetupCommand
(
NULL
,
"idontexist.exe"
,
"Install"
,
"c:
\\
windows
\\
system32"
,
"Title"
,
&
hexe
,
0
,
NULL
);
hr
=
pRunSetupCommand
(
NULL
,
"idontexist.exe"
,
"Install"
,
systemdir
,
"Title"
,
&
hexe
,
0
,
NULL
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
),
"Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), got %d
\n
"
,
hr
);
ok
(
hexe
==
NULL
,
"Expcted hexe to be NULL
\n
"
);
...
...
@@ -113,14 +116,14 @@ static void test_RunSetupCommand(void)
/* try to run an exe with the RSC_FLAG_INF flag */
hexe
=
(
HANDLE
)
0xdeadbeef
;
hr
=
pRunSetupCommand
(
NULL
,
"winver.exe"
,
"Install"
,
"c:
\\
windows
\\
system32"
,
"Title"
,
&
hexe
,
RSC_FLAG_INF
|
RSC_FLAG_QUIET
,
NULL
);
hr
=
pRunSetupCommand
(
NULL
,
"winver.exe"
,
"Install"
,
systemdir
,
"Title"
,
&
hexe
,
RSC_FLAG_INF
|
RSC_FLAG_QUIET
,
NULL
);
ok
(
is_spapi_err
(
hr
),
"Expected a setupapi error, got %d
\n
"
,
hr
);
ok
(
hexe
==
(
HANDLE
)
0xdeadbeef
,
"Expected hexe to be 0xdeadbeef
\n
"
);
ok
(
!
TerminateProcess
(
hexe
,
0
),
"Expected TerminateProcess to fail
\n
"
);
/* run winver.exe */
hexe
=
(
HANDLE
)
0xdeadbeef
;
hr
=
pRunSetupCommand
(
NULL
,
"winver.exe"
,
"Install"
,
"c:
\\
windows
\\
system32"
,
"Title"
,
&
hexe
,
0
,
NULL
);
hr
=
pRunSetupCommand
(
NULL
,
"winver.exe"
,
"Install"
,
systemdir
,
"Title"
,
&
hexe
,
0
,
NULL
);
ok
(
hr
==
S_ASYNCHRONOUS
,
"Expected S_ASYNCHRONOUS, got %d
\n
"
,
hr
);
ok
(
hexe
!=
NULL
,
"Expected hexe to be non-NULL
\n
"
);
ok
(
TerminateProcess
(
hexe
,
0
),
"Expected TerminateProcess to succeed
\n
"
);
...
...
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