diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-14 23:23:57 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-14 23:23:57 +0900 |
| commit | 9e18d1de77b2c9bb24a51c2e99b060c6d06818ee (patch) | |
| tree | 7141db9055c96a4ae1767304336180c20ca61c0c /internal | |
| parent | 2647a71be1f287e50011a65653b9e9c806627899 (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.go | 17 |
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]) + } + } +} |
