mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
tests: cleanup ptimer-test
1) ptimer-test is not a qtest---it runs the ptimer.c code directly in the ptimer-test process 2) ptimer-test has its own stubs file, so there is no need to add more stubs to stubs/vmstate.c Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
7a2334f720
commit
24b9462544
4 changed files with 21 additions and 18 deletions
|
@ -505,47 +505,47 @@ static void add_ptimer_tests(uint8_t policy)
|
|||
g_sprintf(policy_name, "default");
|
||||
}
|
||||
|
||||
qtest_add_data_func(
|
||||
g_test_add_data_func(
|
||||
g_strdup_printf("/ptimer/set_count policy=%s", policy_name),
|
||||
ppolicy, check_set_count);
|
||||
|
||||
qtest_add_data_func(
|
||||
g_test_add_data_func(
|
||||
g_strdup_printf("/ptimer/set_limit policy=%s", policy_name),
|
||||
ppolicy, check_set_limit);
|
||||
|
||||
qtest_add_data_func(
|
||||
g_test_add_data_func(
|
||||
g_strdup_printf("/ptimer/oneshot policy=%s", policy_name),
|
||||
ppolicy, check_oneshot);
|
||||
|
||||
qtest_add_data_func(
|
||||
g_test_add_data_func(
|
||||
g_strdup_printf("/ptimer/periodic policy=%s", policy_name),
|
||||
ppolicy, check_periodic);
|
||||
|
||||
qtest_add_data_func(
|
||||
g_test_add_data_func(
|
||||
g_strdup_printf("/ptimer/on_the_fly_mode_change policy=%s", policy_name),
|
||||
ppolicy, check_on_the_fly_mode_change);
|
||||
|
||||
qtest_add_data_func(
|
||||
g_test_add_data_func(
|
||||
g_strdup_printf("/ptimer/on_the_fly_period_change policy=%s", policy_name),
|
||||
ppolicy, check_on_the_fly_period_change);
|
||||
|
||||
qtest_add_data_func(
|
||||
g_test_add_data_func(
|
||||
g_strdup_printf("/ptimer/on_the_fly_freq_change policy=%s", policy_name),
|
||||
ppolicy, check_on_the_fly_freq_change);
|
||||
|
||||
qtest_add_data_func(
|
||||
g_test_add_data_func(
|
||||
g_strdup_printf("/ptimer/run_with_period_0 policy=%s", policy_name),
|
||||
ppolicy, check_run_with_period_0);
|
||||
|
||||
qtest_add_data_func(
|
||||
g_test_add_data_func(
|
||||
g_strdup_printf("/ptimer/run_with_delta_0 policy=%s", policy_name),
|
||||
ppolicy, check_run_with_delta_0);
|
||||
|
||||
qtest_add_data_func(
|
||||
g_test_add_data_func(
|
||||
g_strdup_printf("/ptimer/periodic_with_load_0 policy=%s", policy_name),
|
||||
ppolicy, check_periodic_with_load_0);
|
||||
|
||||
qtest_add_data_func(
|
||||
g_test_add_data_func(
|
||||
g_strdup_printf("/ptimer/oneshot_with_load_0 policy=%s", policy_name),
|
||||
ppolicy, check_oneshot_with_load_0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue