blob: b310bc2c0424bfc5bc3a3183ada4bce0cafb721d [file] [log] [blame]
Chandler Carruth665c76b2012-07-02 13:35:01 +00001; RUN: sh -c 'opt --reject-this-option 2>&-; echo $?; opt -o /dev/null /dev/null 2>&-; echo $?;' \
2; RUN: | FileCheck %s
NAKAMURA Takumi619ca0d2013-01-20 03:35:39 +00003
Chad Rosier379574f2012-11-13 16:42:19 +00004; CHECK: {{^1$}}
NAKAMURA Takumi619ca0d2013-01-20 03:35:39 +00005; On valgrind, we got 127 here.
6; XFAIL: valgrind
7
Dan Gohman492c2ea2010-08-18 22:35:56 +00008; CHECK: {{^0$}}
Jakob Stoklund Olesen728941f2010-09-09 22:02:13 +00009; XFAIL: vg_leak
NAKAMURA Takumi2a61f4e2010-12-07 02:43:58 +000010; REQUIRES: shell
Dan Gohman492c2ea2010-08-18 22:35:56 +000011
Dan Gohman492c2ea2010-08-18 22:35:56 +000012; Test that the error handling when writing to stderr fails exits the
13; program cleanly rather than aborting.