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
|
2012-11-12 21:51:08 +00:00
|
|
|
; CHECK: {{^70$}}
|
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
|
|
|
|
2012-11-13 15:03:33 +00:00
|
|
|
; On MSYS, 70 is not seen, but 1. r127726 should be reworked.
|
|
|
|
; XFAIL: mingw32
|
|
|
|
|
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.
|