diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-17 02:55:36 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-17 02:55:36 +0900 |
| commit | 24618ab9a1524e8b8986a9bf67667288e642fcf1 (patch) | |
| tree | b3f2a71a2c9bedf937d0fec00092ad9133cb3ec9 /sandbox/executable_test.go | |
| parent | 9ce4706a0766880c072cccd2643d66f614a6a16b (diff) | |
sandbox: move out of internal
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'sandbox/executable_test.go')
| -rw-r--r-- | sandbox/executable_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
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]) + } + } +} |
