Print this page
11838 secflag tests are racy

@@ -10,10 +10,11 @@
 # source.  A copy of the CDDL is also available via the Internet at
 # http://www.illumos.org/license/CDDL.
 #
 
 # Copyright 2015, Richard Lowe.
+# Copyright 2019 Joyent, Inc.
 
 tmpdir=/tmp/test.$$
 mkdir $tmpdir
 cd $tmpdir
 

@@ -49,10 +50,11 @@
     set=$3
     ret=0
 
     $bin &
     pid=$!
+    sleep 1
     psecflags $pid | grep -q "${set}:.*aslr"
     (( $? != $state )) && ret=1
     kill -9 $pid
     return $ret
 }