Diff between e753547a7b104db0c96ca95cbd835e91e8199dac and 52e64891aaf7d642347496ee83a419e61918e91b

Changed Files

File Additions Deletions Status
src/shared/tester.c +10 -0 modified

Full Patch

diff --git a/src/shared/tester.c b/src/shared/tester.c
index aa057bc..a41b226 100644
--- a/src/shared/tester.c
+++ b/src/shared/tester.c
@@ -471,6 +471,11 @@ void tester_test_passed(void)
 	if (test->stage != TEST_STAGE_RUN)
 		return;
 
+	if (test->timeout_id > 0) {
+		g_source_remove(test->timeout_id);
+		test->timeout_id = 0;
+	}
+
 	test->result = TEST_RESULT_PASSED;
 	print_progress(test->name, COLOR_GREEN, "test passed");
 
@@ -489,6 +494,11 @@ void tester_test_failed(void)
 	if (test->stage != TEST_STAGE_RUN)
 		return;
 
+	if (test->timeout_id > 0) {
+		g_source_remove(test->timeout_id);
+		test->timeout_id = 0;
+	}
+
 	test->result = TEST_RESULT_FAILED;
 	print_progress(test->name, COLOR_RED, "test failed");