summaryrefslogtreecommitdiff
path: root/internal/debug/signals_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-08 22:23:55 +0300
committerPaul Buetow <paul@buetow.org>2026-04-08 22:23:55 +0300
commita2335b65b2ccf7e6ffc440ca3d61dd6bec9e9163 (patch)
tree9aa5444fad75281aaada1355cd65f8ad8075498a /internal/debug/signals_test.go
parent55d49e6a68a2b35457347df5443fe770fe474a3b (diff)
Task e: gate debug signal handlers behind build tag
Diffstat (limited to 'internal/debug/signals_test.go')
-rw-r--r--internal/debug/signals_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/debug/signals_test.go b/internal/debug/signals_test.go
index d7b0d2d..641e638 100644
--- a/internal/debug/signals_test.go
+++ b/internal/debug/signals_test.go
@@ -1,4 +1,5 @@
-// +build !windows
+//go:build debugsignals && !windows
+// +build debugsignals,!windows
package debug
@@ -55,7 +56,7 @@ func TestDumpGoroutines(t *testing.T) {
func TestWriteProfile(t *testing.T) {
tmpDir := t.TempDir()
-
+
// Test goroutine profile (text format)
goroutineFile := filepath.Join(tmpDir, "test-goroutine.txt")
if err := writeProfile(goroutineFile, "goroutine", 1); err != nil {