diff options
Diffstat (limited to 'tests/libqtest.h')
-rw-r--r-- | tests/libqtest.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/libqtest.h b/tests/libqtest.h index 27a58fdb1c..8268c098bf 100644 --- a/tests/libqtest.h +++ b/tests/libqtest.h @@ -335,7 +335,8 @@ void qtest_add_func(const char *str, void (*fn)); */ static inline QTestState *qtest_start(const char *args) { - return qtest_init(args); + global_qtest = qtest_init(args); + return global_qtest; } /** @@ -346,6 +347,7 @@ static inline QTestState *qtest_start(const char *args) static inline void qtest_end(void) { qtest_quit(global_qtest); + global_qtest = NULL; } /** |