Skip to contentSkip to conversation

selinux-testsuite: fix ptrace test script

PATCH New Stephen Smalley 1 participant 1 message Feb 6, 2017 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selinux-testsuite: fix ptrace test script

The ptrace test script was doing a chmod +x wait, which wouldn't work when run from the top-level directory. Use $basedir to fully qualify the pathname. This just happened to "work" when there was a wait test, but it was then being applied to the wait subdirectory, not the wait script.

---
 tests/ptrace/test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/ptrace/test +1 -1
index 711d026..dc5bf40 100755
@@ -5,7 +5,7 @@ BEGIN { plan tests => 2}
 
 $basedir = $0;  $basedir =~ s|(.*)/[^/]*|$1|;
 
-system "chmod +x wait";
+system "chmod +x $basedir/wait";
 
 # Start the process to be traced.
 if(($pid=fork())==0){
Signature · 1 line
2.7.4