aboutsummaryrefslogtreecommitdiffhomepage
path: root/sandbox/executable_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/executable_test.go')
-rw-r--r--sandbox/executable_test.go17
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])
+ }
+ }
+}