Skip to contentSkip to conversation

master - tests: skip when gcore from gdb package is missing

PATCH Zdenek Kabelac 1 participant 1 message Nov 19, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=14f24c217586a4544b911b5ea90e8b627a8efd01
Commit:        14f24c217586a4544b911b5ea90e8b627a8efd01
Parent:        4021e88a31a440e64992742be76367f98fbc9400
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sun Nov 18 21:37:00 2018 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Sun Nov 18 22:03:50 2018 +0100

tests: skip when gcore from gdb package is missing

gcore is needed for gathering all userspace mappings.

---
 test/shell/dmsecuretest.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
test/shell/dmsecuretest.sh +3 -0
index 45abd00..fca72bf 100644
@@ -21,6 +21,9 @@ SECURE="434e0cbab02ca68ffba9268222c3789d703fe62427b78b308518b3228f6a2122"
 
 DMTEST="${PREFIX}-test-secure"
 
+# Test needs installed gdb package with gcore app
+which gcore || skip
+
 aux driver_at_least 4 6 || skip
 
 # ensure we can create devices (uses dmsetup, etc)