1 //#include "bug-2803.h"
3 //#include "code-2803.h"
5 #define VERSION 5 //change this to 5 and the test wont fail.
21 // loop from {0.0} to {1.1000000} stepping by tv_sec by 1 and tv_usec by 100000
22 test_loop( 0, 0, 1, MICROSECONDS, 1, MICROSECONDS / 10 );
24 // test_loop( 0, 0, 5, MICROSECONDS, 1, MICROSECONDS / 1000 );
25 // test_loop( 0, 0, -5, -MICROSECONDS, -1, -MICROSECONDS / 1000 );
30 void test_main( void )
32 TEST_ASSERT_EQUAL(0, main2());
35 //VERSION defined at the top of the file
37 void test_XPASS(void) //expecting fail but passes, should we get an alert about that?
43 TEST_FAIL_MESSAGE("expected to fail");
46 else TEST_ASSERT_EQUAL(1,1);
49 void test_XFAIL(void) //expecting fail, and XFAILs
55 TEST_FAIL_MESSAGE("Expected to fail");
58 else TEST_ASSERT_EQUAL(1,2);
61 void test_XFAIL_WITH_MESSAGE(void) //expecting fail, and XFAILs
64 TEST_EXPECT_FAIL_MESSAGE("Doesn't work on this OS");
67 TEST_FAIL_MESSAGE("Expected to fail");
70 else TEST_ASSERT_EQUAL(1,2);
73 void test_main_incorrect(void){
74 TEST_ASSERT_EQUAL(3, main2());
77 void test_ignored(void){
79 TEST_IGNORE_MESSAGE("This test is being ignored!");