mingw: make simavr compilable with MinGW
[simavr] / tests / test_atmega88_timer16.c
1 #include "tests.h"
2
3 int main(int argc, char **argv) {
4         tests_init(argc, argv);
5         enum tests_finish_reason reason =
6                 tests_init_and_run_test("atmega88_timer16.axf", 10000000);
7         switch(reason) {
8         case LJR_CYCLE_TIMER:
9                 fail("Test failed to finish properly; reason=%d, cycles=%"
10                      PRI_avr_cycle_count, reason, tests_cycle_count);
11                 break;
12         case LJR_SPECIAL_DEINIT:
13                 break;
14         default:
15                 fail("This should not be reached; reason=%d", reason);
16         }
17         tests_assert_cycles_between(12500000, 12500300);
18         tests_success();
19         return 0;
20 }