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