busybox/shell/hush_test/hush-standalone/nofork_trashes_getopt.tests
Denys Vlasenko 5d6b8729ed hush testsuite: add many tests from ash testsuite
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-10-02 17:39:31 +02:00

7 lines
216 B
Plaintext
Executable File

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