Module: wine
Branch: master
Commit: a3217c89236d40d288e7c765cd400ace78a7fa20
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a3217c89236d40d288e7c765c…
Author: Jacek Caban <jacek(a)codeweavers.com>
Date: Thu Dec 16 15:29:59 2010 +0100
winetest: Make win9x unsupported.
It's still possible to run tests with this patch, but results won't be
submitted.
---
programs/winetest/main.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/programs/winetest/main.c b/programs/winetest/main.c
index 7caf9f9..5a7109a 100644
--- a/programs/winetest/main.c
+++ b/programs/winetest/main.c
@@ -1162,8 +1162,13 @@ int main( int argc, char *argv[] )
}
}
if (!submit && !extract) {
+ int is_win9x = (GetVersion() & 0x80000000) != 0;
+
report (R_STATUS, "Starting up");
+ if (is_win9x)
+ report (R_WARNING, "Running on win9x is not supported. You won't be able to submit results.");
+
if (!running_on_visible_desktop ())
report (R_FATAL, "Tests must be run on a visible desktop");
@@ -1208,7 +1213,7 @@ int main( int argc, char *argv[] )
DeleteFileA(logname);
exit (0);
}
- if (build_id[0] && nr_of_skips <= SKIP_LIMIT && !nr_native_dlls &&
+ if (build_id[0] && nr_of_skips <= SKIP_LIMIT && !nr_native_dlls && !is_win9x &&
report (R_ASK, MB_YESNO, "Do you want to submit the test results?") == IDYES)
if (!send_file (logname) && !DeleteFileA(logname))
report (R_WARNING, "Can't remove logfile: %u", GetLastError());