diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-17 02:31:46 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-17 02:44:07 +0900 |
| commit | 9a1f8e129fe0f9919981b8a1d345a9b455bd76de (patch) | |
| tree | e52f33a3908c256aebb30f059cabd40f371a886f /internal/sandbox/executable_test.go | |
| parent | ee108603572101ad3c285830e04ee248916b6c5d (diff) | |
sandbox: wrap fmsg interface
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/sandbox/executable_test.go')
| -rw-r--r-- | internal/sandbox/executable_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/internal/sandbox/executable_test.go b/internal/sandbox/executable_test.go new file mode 100644 index 00000000..b11908c5 --- /dev/null +++ b/internal/sandbox/executable_test.go @@ -0,0 +1,17 @@ +package sandbox_test + +import ( + "os" + "testing" + + "git.gensokyo.uk/security/fortify/internal/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]) + } + } +} |
