aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-14 23:23:57 +0900
committerOphestra <cat@gensokyo.uk>2025-03-14 23:23:57 +0900
commit9e18d1de77b2c9bb24a51c2e99b060c6d06818ee (patch)
tree7141db9055c96a4ae1767304336180c20ca61c0c /internal
parent2647a71be1f287e50011a65653b9e9c806627899 (diff)
helper/proc: pass extra files and start
For integration with native container tooling. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/executable_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/internal/executable_test.go b/internal/executable_test.go
new file mode 100644
index 00000000..1fdd40a2
--- /dev/null
+++ b/internal/executable_test.go
@@ -0,0 +1,17 @@
+package internal_test
+
+import (
+ "os"
+ "testing"
+
+ "git.gensokyo.uk/security/fortify/internal"
+)
+
+func TestExecutable(t *testing.T) {
+ for i := 0; i < 16; i++ {
+ if got := internal.MustExecutable(); got != os.Args[0] {
+ t.Errorf("MustExecutable: %q, want %q",
+ got, os.Args[0])
+ }
+ }
+}