llvm/test/Other/close-stderr.ll
NAKAMURA Takumi 90c61c4a74 llvm/test/Other/close-stderr.ll: Mark it as XFAIL:mingw32 for now.
On MSYS, 70 is not seen, but 1.

r127726 should be reworked. Candidate options are;

  1) Use not exit(70), but _exit(70), in report_fatal_error().
  2) Return with _exit(70) in ~raw_ostream().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167836 91177308-0d34-0410-b5e6-96231b3b80d8
2012-11-13 15:03:33 +00:00

13 lines
384 B
LLVM

; RUN: sh -c 'opt --reject-this-option 2>&-; echo $?; opt -o /dev/null /dev/null 2>&-; echo $?;' \
; RUN: | FileCheck %s
; CHECK: {{^70$}}
; CHECK: {{^0$}}
; XFAIL: vg_leak
; REQUIRES: shell
; On MSYS, 70 is not seen, but 1. r127726 should be reworked.
; XFAIL: mingw32
; Test that the error handling when writing to stderr fails exits the
; program cleanly rather than aborting.