[Lapetus-cvs] lapetus/tests/regtest tests.h,1.2,1.3
Status: Inactive
Brought to you by:
cyberwarriorx
From: Theo B. <cyb...@us...> - 2008-02-17 15:54:56
|
Update of /cvsroot/lapetus/lapetus/tests/regtest In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv31032 Modified Files: tests.h Log Message: -Added macro for test waiting Index: tests.h =================================================================== RCS file: /cvsroot/lapetus/lapetus/tests/regtest/tests.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- tests.h 8 Jan 2008 09:28:40 -0000 1.2 +++ tests.h 17 Feb 2008 15:54:51 -0000 1.3 @@ -43,4 +43,21 @@ extern screensettings_struct testdispsettings; extern font_struct testdispfont; +#define WaitTest(testarg, maxtime, failstatus) \ + { \ + int time; \ + \ + for (time = 0; time < (maxtime); time++) \ + { \ + if (testarg) \ + { \ + stagestatus = STAGESTAT_DONE; \ + break; \ + } \ + if (time == ((maxtime) - 1)) \ + stagestatus = (failstatus); \ + } \ + } + + #endif |