]> sourceware.org Git - lvm2.git/commitdiff
tests: compatible with older kernels
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 29 Jan 2020 14:50:57 +0000 (15:50 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 4 Feb 2020 16:22:06 +0000 (17:22 +0100)
Older kernels just show syscall stacktrace.

test/shell/dmsecuretest.sh

index 0f53ea7041eed637671c8e23acd021c8fd587bec..144b1f4aec3a2a772c4e6b73c946977889d92748 100644 (file)
@@ -47,7 +47,7 @@ dmsetup status "$DMTEST"
 # generate core file for running&sleeping binary
 gcore "$PID" | tee out
 # check we capture core while  dmsecuretest was already sleeping
-grep "nanosleep" out
+grep "nanosleep" out || grep kernel_vsyscall out
 kill "$PID" || true
 wait
 
This page took 0.698194 seconds and 5 git commands to generate.