diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-16 17:26:09 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-16 18:51:53 +0900 |
| commit | e599b5583dd821ed26bdfc01f7f67d4a317b9843 (patch) | |
| tree | b444a3dc964814360e6779bc10b30f2e599b537c /helper/seccomp | |
| parent | 33a4ab11c226c736c0d8b2644fbbe27a5ca045e9 (diff) | |
fmsg: implement suspend in writer
This removes the requirement to call fmsg.Exit on every exit path, and enables direct use of the "log" package. However, fmsg.BeforeExit is still encouraged when possible to catch exit on suspended output.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'helper/seccomp')
| -rw-r--r-- | helper/seccomp/export_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helper/seccomp/export_test.go b/helper/seccomp/export_test.go index 8e21fe1f..40f81c7a 100644 --- a/helper/seccomp/export_test.go +++ b/helper/seccomp/export_test.go @@ -4,12 +4,12 @@ import ( "crypto/sha512" "errors" "io" + "log" "slices" "syscall" "testing" "git.gensokyo.uk/security/fortify/helper/seccomp" - "git.gensokyo.uk/security/fortify/internal/fmsg" ) func TestExport(t *testing.T) { @@ -79,7 +79,7 @@ func TestExport(t *testing.T) { buf := make([]byte, 8) for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { - seccomp.CPrintln = fmsg.Println + seccomp.CPrintln = log.Println t.Cleanup(func() { seccomp.CPrintln = nil }) e := seccomp.New(tc.opts) |
