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
4f16a43c
Commit
4f16a43c
authored
Nov 13, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Skip some tests if not in interactive mode because they pop up dialogs.
parent
b0afca57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
install.c
dlls/advpack/tests/install.c
+19
-7
No files found.
dlls/advpack/tests/install.c
View file @
4f16a43c
...
...
@@ -203,9 +203,15 @@ static void test_LaunchINFSection(void)
char
cmdline
[
MAX_PATH
];
static
char
file
[]
=
"test.inf,DefaultInstall,4,0"
;
/* try an invalid cmdline */
hr
=
pLaunchINFSection
(
NULL
,
NULL
,
NULL
,
0
);
ok
(
hr
==
1
,
"Expected 1, got %d
\n
"
,
hr
);
/* The 'No UI' flag seems to have no effect whatsoever on Windows.
* So only do this test in interactive mode.
*/
if
(
winetest_interactive
)
{
/* try an invalid cmdline */
hr
=
pLaunchINFSection
(
NULL
,
NULL
,
NULL
,
0
);
ok
(
hr
==
1
,
"Expected 1, got %d
\n
"
,
hr
);
}
CreateDirectoryA
(
"one"
,
NULL
);
create_inf_file
(
"one
\\
test.inf"
);
...
...
@@ -243,10 +249,16 @@ static void test_LaunchINFSectionEx(void)
hr
=
pLaunchINFSectionEx
(
NULL
,
NULL
,
cmdline
,
0
);
ok
(
hr
==
0
,
"Expected 0, got %d
\n
"
,
hr
);
/* try an invalid CAB filename with a relative INF name */
lstrcpy
(
cmdline
,
"test.inf,DefaultInstall,c:imacab.cab,4"
);
hr
=
pLaunchINFSectionEx
(
NULL
,
NULL
,
cmdline
,
0
);
ok
(
hr
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %d
\n
"
,
hr
);
/* The 'No UI' flag seems to have no effect whatsoever on Windows.
* So only do this test in interactive mode.
*/
if
(
winetest_interactive
)
{
/* try an invalid CAB filename with a relative INF name */
lstrcpy
(
cmdline
,
"test.inf,DefaultInstall,c:imacab.cab,4"
);
hr
=
pLaunchINFSectionEx
(
NULL
,
NULL
,
cmdline
,
0
);
ok
(
hr
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %d
\n
"
,
hr
);
}
DeleteFileA
(
"test.inf"
);
}
...
...
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