Add newline on alarm timeouts to help error parsers

This commit is contained in:
Wilson Snyder 2026-04-13 21:07:03 -04:00
parent 6ba45d3383
commit 023b2edd48
2 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,9 @@ private:
if (v3Global.opt.debugRuntimeTimeout()) {
puts("void alarmHandler(int signum) {\n");
// Add newline so %Error is at beginning-of-line, as might get the alarm
// when in the middle of some other print with no newline
puts(" VL_PRINTF_MT(\"\\n\");\n");
puts(" VL_FATAL_MT(\"\", 0, \"\", \"Alarm signal received,"s
+ " '--debug-runtime-timeout "s
+ std::to_string(v3Global.opt.debugRuntimeTimeout()) + "' exceeded\\n\");\n");

View File

@ -1,4 +1,5 @@
Sleeping....
%Error: Alarm signal received, '--debug-runtime-timeout 1' exceeded
Aborting...