1 ## Test that -o sets the output file name.
3 # RUN: yaml2obj %s -o %t
4 # RUN: rm -f %t.yaml && obj2yaml %t -o %t.yaml
6 # RUN: rm -f %t.yaml && cat %t | obj2yaml -o%t.yaml
9 ## In case of an error, don't create the output file.
11 # RUN: echo | not obj2yaml -o %t.yaml
14 # RUN: not obj2yaml %t -o %p/path/does/not/exist 2>&1 | FileCheck -DMSG=%errc_ENOENT %s
16 # CHECK: obj2yaml: error: failed to open '{{.*}}/path/does/not/exist': [[MSG]]