nofork_trashes_getopt.tests 216 B

123456
  1. # In this test, rm is NOFORK and it modifies getopt internal state
  2. rm -f non_existent_file
  3. # Subsequent hexdump is run as NOEXEC, and thus still uses this state
  4. hexdump </dev/null
  5. # Did hexdump segfault etc?
  6. echo $?