<commit_before>; RUN: sh -c "\
; RUN:        opt --reject-this-option 2>&-; echo \$?; \
; RUN:        opt -o /dev/null /dev/null 2>&-; echo \$?; \
; RUN:       " | FileCheck %s
; CHECK: {{^1$}}
; CHECK: {{^0$}}

; Test that the error handling when writing to stderr fails exits the
; program cleanly rather than aborting.
<commit_msg>XFAIL test under valgrind. It is not really our problem if sh is leaking.<commit_after>; RUN: sh -c "\
; RUN:        opt --reject-this-option 2>&-; echo \$?; \
; RUN:        opt -o /dev/null /dev/null 2>&-; echo \$?; \
; RUN:       " | FileCheck %s
; CHECK: {{^1$}}
; CHECK: {{^0$}}
; XFAIL: vg_leak

; Test that the error handling when writing to stderr fails exits the
; program cleanly rather than aborting.

{'fraction_non_alphanumeric': 0.174496644295302, 'fraction_numerical': 0.010738255033557046, 'mean_word_length': 2.6390243902439026, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6509562', 'n_tokens_mistral': 275, 'n_tokens_neox': 255, 'n_words': 95}