Chandler Carruth | 665c76b | 2012-07-02 13:35:01 +0000 | [diff] [blame] | 1 | ; RUN: sh -c 'opt --reject-this-option 2>&-; echo $?; opt -o /dev/null /dev/null 2>&-; echo $?;' \ |
| 2 | ; RUN: | FileCheck %s |
NAKAMURA Takumi | 619ca0d | 2013-01-20 03:35:39 +0000 | [diff] [blame] | 3 | |
Chad Rosier | 379574f | 2012-11-13 16:42:19 +0000 | [diff] [blame] | 4 | ; CHECK: {{^1$}} |
NAKAMURA Takumi | 619ca0d | 2013-01-20 03:35:39 +0000 | [diff] [blame] | 5 | ; On valgrind, we got 127 here. |
| 6 | ; XFAIL: valgrind |
| 7 | |
Dan Gohman | 492c2ea | 2010-08-18 22:35:56 +0000 | [diff] [blame] | 8 | ; CHECK: {{^0$}} |
Jakob Stoklund Olesen | 728941f | 2010-09-09 22:02:13 +0000 | [diff] [blame] | 9 | ; XFAIL: vg_leak |
NAKAMURA Takumi | 2a61f4e | 2010-12-07 02:43:58 +0000 | [diff] [blame] | 10 | ; REQUIRES: shell |
Dan Gohman | 492c2ea | 2010-08-18 22:35:56 +0000 | [diff] [blame] | 11 | |
Dan Gohman | 492c2ea | 2010-08-18 22:35:56 +0000 | [diff] [blame] | 12 | ; Test that the error handling when writing to stderr fails exits the |
| 13 | ; program cleanly rather than aborting. |