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
5b692005
Commit
5b692005
authored
Jan 04, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Pass correct working directory to the tests.
parent
0f029739
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
main.c
programs/winetest/main.c
+6
-6
No files found.
programs/winetest/main.c
View file @
5b692005
...
...
@@ -266,7 +266,7 @@ extract_test (struct wine_test *test, const char *dir, LPTSTR res_name)
value of WaitForSingleObject.
*/
static
int
run_ex
(
char
*
cmd
,
const
char
*
out
,
DWORD
ms
)
run_ex
(
char
*
cmd
,
const
char
*
out
,
const
char
*
tempdir
,
DWORD
ms
)
{
STARTUPINFO
si
;
PROCESS_INFORMATION
pi
;
...
...
@@ -289,7 +289,7 @@ run_ex (char *cmd, const char *out, DWORD ms)
}
if
(
!
CreateProcessA
(
NULL
,
cmd
,
NULL
,
NULL
,
TRUE
,
0
,
NULL
,
NULL
,
&
si
,
&
pi
))
{
NULL
,
tempdir
,
&
si
,
&
pi
))
{
status
=
-
2
;
}
else
{
CloseHandle
(
pi
.
hThread
);
...
...
@@ -358,7 +358,7 @@ get_subtests (const char *tempdir, struct wine_test *test, LPTSTR res_name)
extract_test
(
test
,
tempdir
,
res_name
);
cmd
=
strmake
(
NULL
,
"%s --list"
,
test
->
exename
);
run_ex
(
cmd
,
subname
,
5000
);
run_ex
(
cmd
,
subname
,
tempdir
,
5000
);
free
(
cmd
);
subfile
=
fopen
(
subname
,
"r"
);
...
...
@@ -407,7 +407,7 @@ get_subtests (const char *tempdir, struct wine_test *test, LPTSTR res_name)
}
static
void
run_test
(
struct
wine_test
*
test
,
const
char
*
subtest
)
run_test
(
struct
wine_test
*
test
,
const
char
*
subtest
,
const
char
*
tempdir
)
{
int
status
;
const
char
*
file
=
get_test_source_file
(
test
->
name
,
subtest
);
...
...
@@ -415,7 +415,7 @@ run_test (struct wine_test* test, const char* subtest)
char
*
cmd
=
strmake
(
NULL
,
"%s %s"
,
test
->
exename
,
subtest
);
xprintf
(
"%s:%s start %s %s
\n
"
,
test
->
name
,
subtest
,
file
,
rev
);
status
=
run_ex
(
cmd
,
NULL
,
120000
);
status
=
run_ex
(
cmd
,
NULL
,
tempdir
,
120000
);
free
(
cmd
);
xprintf
(
"%s:%s done (%d)
\n
"
,
test
->
name
,
subtest
,
status
);
}
...
...
@@ -538,7 +538,7 @@ run_tests (char *logname)
for
(
j
=
0
;
j
<
test
->
subtest_count
;
j
++
)
{
report
(
R_STEP
,
"Running: %s:%s"
,
test
->
name
,
test
->
subtests
[
j
]);
run_test
(
test
,
test
->
subtests
[
j
]);
run_test
(
test
,
test
->
subtests
[
j
]
,
tempdir
);
}
}
report
(
R_DELTA
,
0
,
"Running: Done"
);
...
...
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