From aa35067f0caeb709edd60dc76fc68ac33c3e1a25 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 3 Oct 2026 19:01:53 +0900 Subject: test/internal/testsuite: simple proc scanner This replaces procps in the replacement test suite and enables faster and much more precise matching. Signed-off-by: Ophestra --- test/internal/testsuite/testsuite.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/internal/testsuite/testsuite.go') diff --git a/test/internal/testsuite/testsuite.go b/test/internal/testsuite/testsuite.go index 2173509d..ef250ec8 100644 --- a/test/internal/testsuite/testsuite.go +++ b/test/internal/testsuite/testsuite.go @@ -1,4 +1,7 @@ // Package testsuite provides many quick-and-dirty integration testing utilities. +// +// Attempting to import this package outside testing causes the resulting +// program to panic. package testsuite import ( @@ -8,9 +11,14 @@ import ( "os/signal" "os/user" "syscall" + "testing" ) func init() { + if testing.Testing() { + return + } + log.SetFlags(0) log.SetPrefix("testsuite: ") } -- cgit v1.3.1