]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: runcon: avoid false success
authorPádraig Brady <P@draigBrady.com>
Sat, 20 Dec 2025 13:16:11 +0000 (13:16 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 20 Dec 2025 13:17:12 +0000 (13:17 +0000)
* tests/runcon/runcon-compute.sh: Ensure runcon runs,
since the main test is a negative one.

tests/runcon/runcon-compute.sh

index 64ac77c39c281cb0030773c167c591a5c934eb67..25376318b9fb57f87a314483557c4e0608d04c55 100755 (executable)
@@ -19,6 +19,8 @@
 . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
 print_ver_ runcon
 
+runcon --version || fail=1
+
 # Create an executable that's sure to fail
 printf '%s\n' '#!/bin/sh' 'exit 1' >> 'true' || framework_failure_
 chmod a+x 'true' || framework_failure_