File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,7 @@ static void test_enabling_flags(gconstpointer watchdog)
204
204
{
205
205
const Watchdog * wd = watchdog ;
206
206
QTestState * qts ;
207
+ QDict * rsp ;
207
208
208
209
/* Neither WTIE or WTRE is set, no interrupt or reset should happen */
209
210
qts = qtest_init ("-machine quanta-gsj" );
@@ -240,8 +241,9 @@ static void test_enabling_flags(gconstpointer watchdog)
240
241
g_assert_false (qtest_get_irq (qts , wd -> irq ));
241
242
qtest_clock_step (qts , watchdog_calculate_steps (RESET_CYCLES ,
242
243
watchdog_prescaler (qts , wd )));
243
- g_assert_false (strcmp (qdict_get_str (get_watchdog_action (qts ), "action" ),
244
- "reset" ));
244
+ rsp = get_watchdog_action (qts );
245
+ g_assert_false (strcmp (qdict_get_str (rsp , "action" ), "reset" ));
246
+ qobject_unref (rsp );
245
247
qtest_qmp_eventwait (qts , "RESET" );
246
248
qtest_quit (qts );
247
249
You can’t perform that action at this time.
0 commit comments