aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJakob Unterwurzacher2026-02-24 21:07:10 +0100
committerJakob Unterwurzacher2026-03-08 21:16:57 +0100
commit8111ee449787d5bfda15abf0c8bd3faa89eed514 (patch)
tree96582b8692bebcbb0e21a1cef8b9ae9bd203646e /tests
parent5f5c34ac78cb9d1765ce9cabe87420c32f9d867e (diff)
tests: only add -wpanic on linux
Diffstat (limited to 'tests')
-rw-r--r--tests/test_helpers/mount_unmount.go6
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")