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
31a5f311
Commit
31a5f311
authored
Oct 26, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Refuse to submit results if we are using native dlls.
parent
a4fcb9a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
main.c
programs/winetest/main.c
+6
-1
No files found.
programs/winetest/main.c
View file @
31a5f311
...
@@ -50,6 +50,7 @@ struct wine_test
...
@@ -50,6 +50,7 @@ struct wine_test
char
*
tag
=
NULL
;
char
*
tag
=
NULL
;
static
struct
wine_test
*
wine_tests
;
static
struct
wine_test
*
wine_tests
;
static
int
nr_of_files
,
nr_of_tests
;
static
int
nr_of_files
,
nr_of_tests
;
static
int
nr_native_dlls
;
static
const
char
whitespace
[]
=
"
\t\r\n
"
;
static
const
char
whitespace
[]
=
"
\t\r\n
"
;
static
const
char
testexe
[]
=
"_test.exe"
;
static
const
char
testexe
[]
=
"_test.exe"
;
static
char
build_id
[
64
];
static
char
build_id
[
64
];
...
@@ -679,6 +680,7 @@ extract_test_proc (HMODULE hModule, LPCTSTR lpszType,
...
@@ -679,6 +680,7 @@ extract_test_proc (HMODULE hModule, LPCTSTR lpszType,
{
{
FreeLibrary
(
dll
);
FreeLibrary
(
dll
);
xprintf
(
" %s=load error Configured as native
\n
"
,
dllname
);
xprintf
(
" %s=load error Configured as native
\n
"
,
dllname
);
nr_native_dlls
++
;
return
TRUE
;
return
TRUE
;
}
}
if
(
!
strcmp
(
dllname
,
"mshtml"
)
&&
running_under_wine
()
&&
!
gecko_check
())
if
(
!
strcmp
(
dllname
,
"mshtml"
)
&&
running_under_wine
()
&&
!
gecko_check
())
...
@@ -817,6 +819,9 @@ run_tests (char *logname, char *outdir)
...
@@ -817,6 +819,9 @@ run_tests (char *logname, char *outdir)
report
(
R_DELTA
,
0
,
"Extracting: Done"
);
report
(
R_DELTA
,
0
,
"Extracting: Done"
);
if
(
nr_native_dlls
)
report
(
R_WARNING
,
"Some dlls are configured as native, you won't be able to submit results."
);
report
(
R_STATUS
,
"Running tests"
);
report
(
R_STATUS
,
"Running tests"
);
report
(
R_PROGRESS
,
1
,
nr_of_tests
);
report
(
R_PROGRESS
,
1
,
nr_of_tests
);
for
(
i
=
0
;
i
<
nr_of_files
;
i
++
)
{
for
(
i
=
0
;
i
<
nr_of_files
;
i
++
)
{
...
@@ -1054,7 +1059,7 @@ int main( int argc, char *argv[] )
...
@@ -1054,7 +1059,7 @@ int main( int argc, char *argv[] )
if
(
!
logname
)
{
if
(
!
logname
)
{
logname
=
run_tests
(
NULL
,
outdir
);
logname
=
run_tests
(
NULL
,
outdir
);
if
(
build_id
[
0
]
&&
!
nb_filters
&&
if
(
build_id
[
0
]
&&
!
nb_filters
&&
!
nr_native_dlls
&&
report
(
R_ASK
,
MB_YESNO
,
"Do you want to submit the test results?"
)
==
IDYES
)
report
(
R_ASK
,
MB_YESNO
,
"Do you want to submit the test results?"
)
==
IDYES
)
if
(
!
send_file
(
logname
)
&&
!
DeleteFileA
(
logname
))
if
(
!
send_file
(
logname
)
&&
!
DeleteFileA
(
logname
))
report
(
R_WARNING
,
"Can't remove logfile: %u"
,
GetLastError
());
report
(
R_WARNING
,
"Can't remove logfile: %u"
,
GetLastError
());
...
...
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