All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Smalley <sds@tycho.nsa.gov>
To: selinux@tycho.nsa.gov
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Subject: [PATCH] selinux-testsuite: fix ptrace test script
Date: Mon,  6 Feb 2017 16:42:13 -0500	[thread overview]
Message-ID: <1486417333-29198-1-git-send-email-sds@tycho.nsa.gov> (raw)

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.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
---
 tests/ptrace/test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/ptrace/test b/tests/ptrace/test
index 711d026..dc5bf40 100755
--- a/tests/ptrace/test
+++ b/tests/ptrace/test
@@ -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){
-- 
2.7.4

                 reply	other threads:[~2017-02-06 21:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1486417333-29198-1-git-send-email-sds@tycho.nsa.gov \
    --to=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.