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
bee78503
Commit
bee78503
authored
Jun 22, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Jun 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Implement aborting.
parent
6882287b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
gui.c
programs/winetest/gui.c
+2
-1
main.c
programs/winetest/main.c
+11
-0
winetest.h
programs/winetest/winetest.h
+1
-0
No files found.
programs/winetest/gui.c
View file @
bee78503
...
...
@@ -456,7 +456,8 @@ DlgProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
MAKEINTRESOURCE
(
IDD_ABOUT
),
hwnd
,
AboutProc
);
return
TRUE
;
case
IDABORT
:
report
(
R_WARNING
,
"Not implemented"
);
report
(
R_STATUS
,
"Aborting, please wait..."
);
aborting
=
TRUE
;
return
TRUE
;
}
}
...
...
programs/winetest/main.c
View file @
bee78503
...
...
@@ -49,6 +49,7 @@ struct wine_test
char
*
tag
=
NULL
;
char
*
email
=
NULL
;
BOOL
aborting
=
FALSE
;
static
struct
wine_test
*
wine_tests
;
static
int
nr_of_files
,
nr_of_tests
;
static
int
nr_native_dlls
;
...
...
@@ -677,6 +678,7 @@ extract_test_proc (HMODULE hModule, LPCTSTR lpszType,
HMODULE
dll
;
DWORD
err
;
if
(
aborting
)
return
TRUE
;
if
(
test_filtered_out
(
lpszName
,
NULL
))
return
TRUE
;
/* Check if the main dll is present on this system */
...
...
@@ -840,6 +842,8 @@ run_tests (char *logname, char *outdir)
FreeLibrary
(
hmscoree
);
if
(
aborting
)
return
logname
;
xprintf
(
"Test output:
\n
"
);
report
(
R_DELTA
,
0
,
"Extracting: Done"
);
...
...
@@ -853,12 +857,15 @@ run_tests (char *logname, char *outdir)
struct
wine_test
*
test
=
wine_tests
+
i
;
int
j
;
if
(
aborting
)
break
;
if
(
test
->
maindllpath
)
{
/* We need to add the path (to the main dll) to PATH */
append_path
(
test
->
maindllpath
);
}
for
(
j
=
0
;
j
<
test
->
subtest_count
;
j
++
)
{
if
(
aborting
)
break
;
report
(
R_STEP
,
"Running: %s:%s"
,
test
->
name
,
test
->
subtests
[
j
]);
run_test
(
test
,
test
->
subtests
[
j
],
logfile
,
tempdir
);
...
...
@@ -1105,6 +1112,10 @@ int main( int argc, char *argv[] )
if
(
!
logname
)
{
logname
=
run_tests
(
NULL
,
outdir
);
if
(
aborting
)
{
DeleteFileA
(
logname
);
exit
(
0
);
}
if
(
build_id
[
0
]
&&
!
nb_filters
&&
!
nr_native_dlls
&&
report
(
R_ASK
,
MB_YESNO
,
"Do you want to submit the test results?"
)
==
IDYES
)
if
(
!
send_file
(
logname
)
&&
!
DeleteFileA
(
logname
))
...
...
programs/winetest/winetest.h
View file @
bee78503
...
...
@@ -69,6 +69,7 @@ enum report_type {
#define MAXTAGLEN 20
extern
char
*
tag
;
extern
char
*
email
;
extern
BOOL
aborting
;
int
guiAskTag
(
void
);
int
guiAskEmail
(
void
);
int
report
(
enum
report_type
t
,
...);
...
...
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