Fangrui Song 513bcf6d01
[yaml2obj] Report error when the input filename does not exist
I invoked yaml2obj with a mistyped filename and received no error
message. I nearly thought the program had succeeded, but the shell's
exit code prompt tipped me off.

Pull Request: https://github.com/llvm/llvm-project/pull/144835
2025-06-19 18:38:58 -07:00

5 lines
182 B
Plaintext

# Test case when the input file does not exist.
RUN: not yaml2obj %t.blah 2>&1 | FileCheck -DMSG=%errc_ENOENT --check-prefix=ENOENT %s
ENOENT: yaml2obj: error: {{.*}}.blah: [[MSG]]