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