2010-08-19 06:35:56 +08:00
|
|
|
; RUN: sh -c "\
|
2010-08-23 16:54:19 +08:00
|
|
|
; RUN: opt --reject-this-option 2>&-; echo \$?; \
|
|
|
|
; RUN: opt -o /dev/null /dev/null 2>&-; echo \$?; \
|
2010-08-19 06:35:56 +08:00
|
|
|
; RUN: " | FileCheck %s
|
|
|
|
; CHECK: {{^1$}}
|
|
|
|
; CHECK: {{^0$}}
|
2010-09-10 06:02:13 +08:00
|
|
|
; XFAIL: vg_leak
|
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.
|