2012-07-02 13:35:01 +00:00
|
|
|
; RUN: sh -c 'opt --reject-this-option 2>&-; echo $?; opt -o /dev/null /dev/null 2>&-; echo $?;' \
|
|
|
|
; RUN: | FileCheck %s
|
2013-01-20 03:35:39 +00:00
|
|
|
|
2012-11-13 16:42:19 +00:00
|
|
|
; CHECK: {{^1$}}
|
2013-01-20 03:35:39 +00:00
|
|
|
; On valgrind, we got 127 here.
|
|
|
|
; XFAIL: valgrind
|
|
|
|
|
2010-08-18 22:35:56 +00:00
|
|
|
; CHECK: {{^0$}}
|
2010-09-09 22:02:13 +00:00
|
|
|
; XFAIL: vg_leak
|
2010-12-07 02:43:58 +00:00
|
|
|
; REQUIRES: shell
|
2010-08-18 22:35:56 +00:00
|
|
|
|
2013-01-25 22:12:54 +00:00
|
|
|
; opt will fail to open /dev/null on native win32.
|
|
|
|
; XFAIL: win32
|
|
|
|
|
2010-08-18 22:35:56 +00:00
|
|
|
; Test that the error handling when writing to stderr fails exits the
|
|
|
|
; program cleanly rather than aborting.
|