brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 5b3e2e7 Raw
30 lines · plain
1## This tests for an expected error when --preserve-dates is2## specified at the same time as using stdin or stdout as input or3## output files.4 5# RUN: yaml2obj %s -o %t.foo6 7--- !ELF8FileHeader:9  Class:   ELFCLASS6410  Data:    ELFDATA2LSB11  Type:    ET_DYN12  Machine: EM_X86_6413...14 15# RUN: not llvm-objcopy --preserve-dates - %t 2>&1 | FileCheck %s16# RUN: not llvm-objcopy --preserve-dates %t.foo - 2>&1 | FileCheck %s17 18## Test that llvm-strip reports a proper error when --preserve-dates is specified19## with one or more inputs, where one of them is stdin.20# RUN: not llvm-strip --preserve-dates - < %t.foo 2>&1 | FileCheck %s21# RUN: not llvm-strip --preserve-dates %t.foo - < %t.foo 2>&1 | FileCheck %s22# RUN: not llvm-strip --preserve-dates - %t.foo < %t.foo 2>&1 | FileCheck %s23# RUN: not llvm-strip --preserve-dates %t.foo - %t.foo < %t.foo 2>&1 | FileCheck %s24 25## Testing -o.26# RUN: not llvm-strip --preserve-dates - -o %t.foo < %t.foo 2>&1 | FileCheck %s27# RUN: not llvm-strip --preserve-dates %t.foo -o - < %t.foo 2>&1 | FileCheck %s28 29# CHECK: error: --preserve-dates requires a file30