aboutsummaryrefslogtreecommitdiff
path: root/core/testing
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2024-06-02 23:36:04 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2024-06-02 23:36:04 -0400
commit0ff130d82bf058a41f77c08c8c0c63fb9e205a13 (patch)
treea7b7f6270e52f480da03e92c9dc43dcd7c6c34be /core/testing
parentfa29974dabc03479848935168eb4e26becbe304d (diff)
Fix ad hoc `printf` in test runner signal handler
Diffstat (limited to 'core/testing')
-rw-r--r--core/testing/signal_handler_libc.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/testing/signal_handler_libc.odin b/core/testing/signal_handler_libc.odin
index f60cf2540..d76fdd66b 100644
--- a/core/testing/signal_handler_libc.odin
+++ b/core/testing/signal_handler_libc.odin
@@ -51,7 +51,7 @@ stop_test_callback :: proc "c" (sig: libc.int) {
sigbuf[i] = cast(u8)('0' + m)
i -= 1
}
- sigstr = cast(string)sigbuf[i:]
+ sigstr = cast(string)sigbuf[1 + i:len(sigbuf) - 1]
}
advisory_a := `