diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-03 19:01:53 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-03 21:03:10 +0900 |
| commit | aa35067f0caeb709edd60dc76fc68ac33c3e1a25 (patch) | |
| tree | 928cbdb953a31514781b4e10b43b914275087a1c /test/internal/testsuite/testsuite_guard.go | |
| parent | f2e188c4a0f472bcbd87189f63099d2c73936789 (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'test/internal/testsuite/testsuite_guard.go')
| -rw-r--r-- | test/internal/testsuite/testsuite_guard.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/internal/testsuite/testsuite_guard.go b/test/internal/testsuite/testsuite_guard.go new file mode 100644 index 00000000..0859d17f --- /dev/null +++ b/test/internal/testsuite/testsuite_guard.go @@ -0,0 +1,15 @@ +//go:build !testsuite && !tester + +package testsuite + +import ( + "os" + "testing" +) + +func init() { + if !testing.Testing() { + println("package testsuite imported in non-testsuite program") + os.Exit(1) + } +} |
