brintos

brintos / llvm-project-archived public Read only

0
0
Text · 609 B · 196999e Raw
24 lines · yaml
1## Test that -o sets the output file name.2 3# RUN: yaml2obj %s -o %t4# RUN: rm -f %t.yaml && obj2yaml %t -o %t.yaml5# RUN: ls %t.yaml6# RUN: rm -f %t.yaml && cat %t | obj2yaml -o%t.yaml7# RUN: ls %t.yaml8 9## In case of an error, don't create the output file.10# RUN: rm -f %t.yaml11# RUN: echo | not obj2yaml -o %t.yaml12# RUN: not ls %t.yaml13 14# RUN: not obj2yaml %t -o %p/path/does/not/exist 2>&1 | FileCheck -DMSG=%errc_ENOENT %s15 16# CHECK: obj2yaml: error: failed to open '{{.*}}/path/does/not/exist': [[MSG]]17 18!ELF19FileHeader:20  Class:   ELFCLASS6421  Data:    ELFDATA2LSB22  Type:    ET_REL23  Machine: EM_NONE24