20 lines · yaml
1## Test that -o sets the output file name.2 3# RUN: rm -f %t4# RUN: yaml2obj %s -o %t5# RUN: ls %t6# RUN: rm -f %t7# RUN: yaml2obj %s -o%t8# RUN: ls %t9 10# RUN: not yaml2obj -o %p/path/does/not/exist 2>&1 | FileCheck -DMSG=%errc_ENOENT %s11 12# CHECK: yaml2obj: error: failed to open '{{.*}}/path/does/not/exist': [[MSG]]13 14!ELF15FileHeader:16 Class: ELFCLASS6417 Data: ELFDATA2LSB18 Type: ET_REL19 Machine: EM_NONE20