1 ; RUN: sh -c 'opt --reject-this-option 2>&-; echo $?; opt -o /dev/null /dev/null 2>&-; echo $?;' \ 2 ; RUN: | FileCheck %s 3 4 ; CHECK: {{^1$}} 5 ; On valgrind, we got 127 here. 6 ; XFAIL: valgrind 7 8 ; CHECK: {{^0$}} 9 ; XFAIL: vg_leak 10 ; REQUIRES: shell 11 12 ; Test that the error handling when writing to stderr fails exits the 13 ; program cleanly rather than aborting. 14