From ffd4647693f89262500122fcc5517eed14eb28fa Mon Sep 17 00:00:00 2001 From: Aaron Culliney Date: Sun, 28 Dec 2014 16:14:54 -0800 Subject: [PATCH] Make test_breakpoint() function work again --- src/test/testcommon.c | 4 +++- src/test/testdisk.c | 1 + src/test/testdisplay.c | 1 + src/test/testvm.c | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/testcommon.c b/src/test/testcommon.c index ef1bc074..bd53356e 100644 --- a/src/test/testcommon.c +++ b/src/test/testcommon.c @@ -134,7 +134,9 @@ void test_common_init(bool do_cputhread) { if (is_headless) { c_debugger_set_timeout(10); } else { - fprintf(stderr, "NOTE : RUNNING WITH DISPLAY ... pass HEADLESS=1 to environment to run test in faster headless mode\n"); + fprintf(stderr, "NOTE : RUNNING WITH DISPLAY\n"); + fprintf(stderr, "Will spinloop on failed tests for debugger intervention\n"); + fprintf(stderr, "Pass HEADLESS=1 to environment to run nonstop\n"); c_debugger_set_timeout(0); } } diff --git a/src/test/testdisk.c b/src/test/testdisk.c index bcfadf63..bd1c0737 100644 --- a/src/test/testdisk.c +++ b/src/test/testdisk.c @@ -229,6 +229,7 @@ static int begin_video = -1; GREATEST_SUITE(test_suite_disk) { GREATEST_SET_SETUP_CB(testdisk_setup, NULL); GREATEST_SET_TEARDOWN_CB(testdisk_teardown, NULL); + GREATEST_SET_BREAKPOINT_CB(test_breakpoint, NULL); // TESTS -------------------------- begin_video=!is_headless; diff --git a/src/test/testdisplay.c b/src/test/testdisplay.c index 7efd334d..ac025de3 100644 --- a/src/test/testdisplay.c +++ b/src/test/testdisplay.c @@ -318,6 +318,7 @@ static int begin_video = -1; GREATEST_SUITE(test_suite_display) { GREATEST_SET_SETUP_CB(testdisplay_setup, NULL); GREATEST_SET_TEARDOWN_CB(testdisplay_teardown, NULL); + GREATEST_SET_BREAKPOINT_CB(test_breakpoint, NULL); // TESTS -------------------------- begin_video=!is_headless; diff --git a/src/test/testvm.c b/src/test/testvm.c index d56b50a8..da33d51b 100644 --- a/src/test/testvm.c +++ b/src/test/testvm.c @@ -3265,6 +3265,7 @@ static int begin_video = -1; GREATEST_SUITE(test_suite_vm) { GREATEST_SET_SETUP_CB(testvm_setup, NULL); GREATEST_SET_TEARDOWN_CB(testvm_teardown, NULL); + GREATEST_SET_BREAKPOINT_CB(test_breakpoint, NULL); // TESTS -------------------------- begin_video=!is_headless;