summaryrefslogtreecommitdiff
path: root/usr/src/test/os-tests/tests/secflags/secflags_proc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/test/os-tests/tests/secflags/secflags_proc.sh')
-rw-r--r--usr/src/test/os-tests/tests/secflags/secflags_proc.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/test/os-tests/tests/secflags/secflags_proc.sh b/usr/src/test/os-tests/tests/secflags/secflags_proc.sh
index e4a8c6bc82..8a48bc2f22 100644
--- a/usr/src/test/os-tests/tests/secflags/secflags_proc.sh
+++ b/usr/src/test/os-tests/tests/secflags/secflags_proc.sh
@@ -13,6 +13,7 @@
#
# Copyright 2015, Richard Lowe.
+# Copyright 2019 Joyent, Inc.
#
/usr/bin/psecflags -s aslr -e sleep 100000 &
@@ -32,6 +33,9 @@ $pid: sleep 100000
I: aslr
EOF
+# We need to wait for sleep to get exec()ed
+sleep 1
+
/usr/bin/psecflags $pid | grep -v '[LU]:' > /tmp/output.$$
if ! diff -u /tmp/expected.$$ /tmp/output.$$; then