Update tests for new check library & osx
This commit is contained in:
@@ -43,6 +43,7 @@ static void common_init(struct UCoreSettableClock *clk,
|
||||
}
|
||||
|
||||
START_TEST (test_timers_simple)
|
||||
{
|
||||
struct UCoreSettableClock clk;
|
||||
struct TimerTest tt;
|
||||
struct UCTimers timers;
|
||||
@@ -80,9 +81,11 @@ START_TEST (test_timers_simple)
|
||||
ck_assert_int_eq(uc_timers_count(&timers), 0);
|
||||
fail_if(uc_timer_running(&timer) != 0);
|
||||
|
||||
}
|
||||
END_TEST
|
||||
|
||||
START_TEST (test_timers_add_from_callback)
|
||||
{
|
||||
struct UCoreSettableClock clk;
|
||||
struct TimerTest tt;
|
||||
struct UCTimers timers;
|
||||
@@ -114,9 +117,11 @@ START_TEST (test_timers_add_from_callback)
|
||||
fail_if(uc_timer_running(&timer) == 0);
|
||||
ck_assert_int_eq(uc_timers_count(&timers), 1);
|
||||
|
||||
}
|
||||
END_TEST
|
||||
|
||||
START_TEST (test_timers_remove_from_callback)
|
||||
{
|
||||
struct UCoreSettableClock clk;
|
||||
struct TimerTest tt;
|
||||
struct UCTimers timers;
|
||||
@@ -158,9 +163,11 @@ START_TEST (test_timers_remove_from_callback)
|
||||
rc = uc_timers_first(&timers, &tv);
|
||||
fail_if(rc == 0);
|
||||
|
||||
}
|
||||
END_TEST
|
||||
|
||||
START_TEST (test_timers_add_remove)
|
||||
{
|
||||
struct UCoreSettableClock clk;
|
||||
struct TimerTest tt;
|
||||
struct UCTimers timers;
|
||||
@@ -193,6 +200,7 @@ START_TEST (test_timers_add_remove)
|
||||
ck_assert_int_eq(uc_timers_count(&timers), 0);
|
||||
fail_if(uc_timers_first(&timers, &first) == 0);
|
||||
|
||||
}
|
||||
END_TEST
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user