Print this page
11838 secflag tests are racy

@@ -11,10 +11,11 @@
 # http://www.illumos.org/license/CDDL.
 #
 
 #
 # Copyright 2015, Richard Lowe.
+# Copyright 2019 Joyent, Inc.
 #
 
 /usr/bin/psecflags -s aslr -e sleep 100000 &
 pid=$!
 

@@ -30,10 +31,13 @@
 $pid:   sleep 100000
         E:      aslr
         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
     exit 1;
 fi