Francois Gouget : ddraw: Only perform the screen resolution changing tests in interactive mode.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Oct 2 05:40:43 CDT 2006


Module: wine
Branch: master
Commit: 66300403c40e2f2a953017d8688a010466a715f9
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=66300403c40e2f2a953017d8688a010466a715f9

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Sep 29 13:03:40 2006 +0200

ddraw: Only perform the screen resolution changing tests in interactive mode.

---

 dlls/ddraw/tests/ddrawmodes.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/dlls/ddraw/tests/ddrawmodes.c b/dlls/ddraw/tests/ddrawmodes.c
index fd00bb6..5020bec 100644
--- a/dlls/ddraw/tests/ddrawmodes.c
+++ b/dlls/ddraw/tests/ddrawmodes.c
@@ -1,6 +1,13 @@
 /*
  * Unit tests for ddraw functions
  *
+ *
+ * Part of this test involves changing the screen resolution. But this is
+ * really disrupting if the user is doing something else and is not very nice
+ * to CRT screens. Plus, ideally it needs someone watching it to check that
+ * each mode displays correctly.
+ * So this is only done if the test is being run in interactive mode.
+ *
  * Copyright (C) 2003 Sami Aario
  *
  * This library is free software; you can redistribute it and/or
@@ -342,7 +349,8 @@ START_TEST(ddrawmodes)
     if (!createdirectdraw())
         return;
     enumdisplaymodes();
-    testdisplaymodes();
+    if (winetest_interactive)
+        testdisplaymodes();
     flushdisplaymodes();
     releasedirectdraw();
 




More information about the wine-cvs mailing list