llvm-project/llvm/test/tools/llvm-reduce/fail-output-file.test
Matt Arsenault e87bec622c
llvm-reduce: Make some error messages more consistent (#133563)
The coding standards states that error messages should start with
a lowercase. Also use WithColor, and add missing test coverage for
the failed to write to output file case.
2025-03-29 14:10:58 +07:00

8 lines
338 B
Plaintext

# Python on an empty file will always succeed as interesting
# RUN: touch %t
# Fail on attempt to write output to a directory
# RUN: not llvm-reduce --delta-passes=instructions -o %p/Inputs --test %python --test-arg %t %p/Inputs/test-output-format.ll 2>&1 | FileCheck -DMSG=%errc_EISDIR %s
# CHECK: error: opening output file: [[MSG]]