TestPollingCheck
[Test applications]

Win32 console application "TestPollingCheck.exe" demonstrates the usage of class PollingCheck which allows to wait until a condition comes true. More...

Collaboration diagram for TestPollingCheck:

Win32 console application "TestPollingCheck.exe" demonstrates the usage of class PollingCheck which allows to wait until a condition comes true.


Log: Run with successful checks

 --- free boolean check function without arguments  ---
 VerifyCounterIsZero succeeded!
 
 <VerifyCounterIsZero  [polling]
 
 <VerifyCounterIsZero  [polling]
 
 --- free boolean check function using arguments  ---
 
 <VerifyCounterHasValue 96 [polling]
 
 --- boolean member function without argument  ---
 
 <CounterOfTestObjectIsZero  [polling]
 
 --- boolean member function with single argument  ---
 
 <CounterOfTestObjectHasValue -3 [polling]
 
 
 TEST SUCCEEDED!


Log: Run with failed checks

 --- free boolean check function without arguments  ---
 VerifyCounterIsZero failed!
 INFO: Poll-Timeout after 516 ms
 POLL-ERROR: verification failed
 
 <VerifyCounterIsZero  [polling]
 INFO: Poll-Timeout after 516 ms
 c:\userdata\gerald\sw\c\testtoolbox\test\testpollingcheck\testpollingcheck.cpp (257): POLL-ERROR: verification failed
 
 <VerifyCounterIsZero  [polling]
 INFO: Poll-Timeout after 515 ms
 c:\userdata\gerald\sw\c\testtoolbox\test\testpollingcheck\testpollingcheck.cpp (262): POLL-ERROR: verification failed
 
 --- free boolean check function using arguments  ---
 INFO: Poll-Timeout after 516 ms
 POLL-ERROR: verification failed
 
 <VerifyCounterHasValue 96 [polling]
 INFO: Poll-Timeout after 516 ms
 c:\userdata\gerald\sw\c\testtoolbox\test\testpollingcheck\testpollingcheck.cpp (272): POLL-ERROR: verification failed
 INFO: Poll-Timeout after 500 ms
 POLL-ERROR: verification failed
 
 --- boolean member function without argument  ---
 
 <CounterOfTestObjectIsZero  [polling]
 INFO: Poll-Timeout after 515 ms
 c:\userdata\gerald\sw\c\testtoolbox\test\testpollingcheck\testpollingcheck.cpp (191): POLL-ERROR: verification failed
 
 --- boolean member function with single argument  ---
 
 <CounterOfTestObjectHasValue -3 [polling]
 INFO: Poll-Timeout after 516 ms
 c:\userdata\gerald\sw\c\testtoolbox\test\testpollingcheck\testpollingcheck.cpp (202): POLL-ERROR: verification failed
 
 
 TEST FAILED (8 errors detected)
See also:
TestPollingCheck.cpp (file documentation)
TestToolBox::PollingCheck (class documentation)
Using PollingCheck (usage documentation)
Generated on Fri May 27 22:52:29 2011 for TestToolBox by  doxygen 1.6.3