From 24618ab9a1524e8b8986a9bf67667288e642fcf1 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 17 Mar 2025 02:55:36 +0900 Subject: sandbox: move out of internal Signed-off-by: Ophestra --- sandbox/executable_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 sandbox/executable_test.go (limited to 'sandbox/executable_test.go') diff --git a/sandbox/executable_test.go b/sandbox/executable_test.go new file mode 100644 index 00000000..3f8e0285 --- /dev/null +++ b/sandbox/executable_test.go @@ -0,0 +1,17 @@ +package sandbox_test + +import ( + "os" + "testing" + + "git.gensokyo.uk/security/fortify/sandbox" +) + +func TestExecutable(t *testing.T) { + for i := 0; i < 16; i++ { + if got := sandbox.MustExecutable(); got != os.Args[0] { + t.Errorf("MustExecutable: %q, want %q", + got, os.Args[0]) + } + } +} -- cgit v1.3.1