mingw: make simavr compilable with MinGW
[simavr] / tests / test_atmega48_disabled_timer.c
1 #include "tests.h"
2
3 int main(int argc, char **argv) {
4         tests_init(argc, argv);
5         switch(tests_init_and_run_test("atmega48_disabled_timer.axf", 100000000)) {
6         case LJR_CYCLE_TIMER:
7                 // the cycle timer fired
8                 break;
9         case LJR_SPECIAL_DEINIT:
10                 // sleep with interrupts off or some other such reason
11                 fail("AVR woke up from sleep while it shouldn't have (after %"
12                      PRI_avr_cycle_count " cycles)", tests_cycle_count);
13         default:
14                 fail("Error in test case: Should never reach this.");
15         }
16         tests_success();
17         return 0;
18 }