11838 secflag tests are racy
*** 11,20 **** --- 11,21 ---- # http://www.illumos.org/license/CDDL. # # # Copyright 2015, Richard Lowe. + # Copyright 2019 Joyent, Inc. # /usr/bin/psecflags -s aslr -e sleep 100000 & pid=$!
*** 30,39 **** --- 31,43 ---- $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