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

This commit is contained in:
Francois Gouget 2006-09-29 13:03:40 +02:00 committed by Alexandre Julliard
parent b21526925d
commit 66300403c4
1 changed files with 9 additions and 1 deletions

View File

@ -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();