diff --git a/libcontainer/integration/exec_test.go b/libcontainer/integration/exec_test.go index c6aa394ce..26de5b64f 100644 --- a/libcontainer/integration/exec_test.go +++ b/libcontainer/integration/exec_test.go @@ -1921,6 +1921,9 @@ func TestFdLeaks(t *testing.T) { } func TestFdLeaksSystemd(t *testing.T) { + if !systemd.IsRunningSystemd() { + t.Skip("Test requires systemd.") + } testFdLeaks(t, true) }