diff options
| author | Jakob Unterwurzacher | 2026-02-24 21:07:10 +0100 |
|---|---|---|
| committer | Jakob Unterwurzacher | 2026-02-24 21:07:10 +0100 |
| commit | d6242d99f4316783c7f4ff82850a46a0fa431b20 (patch) | |
| tree | 53b0dbc6f1cd18c1dc8e1488118ab3dd01599988 | |
| parent | a298101e579c4e261c206636ecc1be73ee11f624 (diff) | |
tests: only add -wpanic on linux
| -rw-r--r-- | tests/test_helpers/mount_unmount.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_helpers/mount_unmount.go b/tests/test_helpers/mount_unmount.go index 4abc432..3927dd5 100644 --- a/tests/test_helpers/mount_unmount.go +++ b/tests/test_helpers/mount_unmount.go @@ -35,7 +35,11 @@ type mountInfo struct { // Contrary to InitFS(), you MUST passt "-extpass=echo test" (or another way for // getting the master key) explicitly. func Mount(c string, p string, showOutput bool, extraArgs ...string) error { - args := []string{"-q", "-wpanic", "-nosyslog", "-fg", fmt.Sprintf("-notifypid=%d", os.Getpid())} + args := []string{"-q", "-nosyslog", "-fg", fmt.Sprintf("-notifypid=%d", os.Getpid())} + // We are warning-free on Linux, but not (yet) on other OS's + if runtime.GOOS == "linux" { + args = append(args, "-wpanic") + } args = append(args, extraArgs...) if _, isset := os.LookupEnv("FUSEDEBUG"); isset { fmt.Println("FUSEDEBUG is set, enabling -fusedebug") |
