summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objcopy/ELF/invalid-preserve-dates.test
blob: ff2c2e9570e2821459b2527719eacaebe3f99a06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## This tests for an expected error when --preserve dates is
## specified at the same time as using stdin or stdout as input or
## output files.

# RUN: not llvm-objcopy --preserve-dates - %t 2>&1 | FileCheck %s
# RUN: not llvm-objcopy --preserve-dates %p/Inputs/alloc-symtab.o - 2>&1 | FileCheck %s

## Testing N args.
# RUN: not llvm-strip --preserve-dates - < %p/Inputs/alloc-symtab.o 2>&1 | FileCheck %s
# RUN: not llvm-strip --preserve-dates %p/Inputs/alloc-symtab.o - < \
# RUN:      %p/Inputs/alloc-symtab.o 2>&1 | FileCheck %s
# RUN: not llvm-strip --preserve-dates - %p/Inputs/alloc-symtab.o < \
# RUN:      %p/Inputs/alloc-symtab.o 2>&1 | FileCheck %s
# RUN: not llvm-strip --preserve-dates %p/Inputs/alloc-symtab.o - \
# RUN:      %p/Inputs/alloc-symtab.o < %p/Inputs/alloc-symtab.o 2>&1 | FileCheck %s

## Testing -o.
# RUN: not llvm-strip --preserve-dates - -o %p/Inputs/alloc-symtab.o < \
# RUN:      %p/Inputs/alloc-symtab.o 2>&1 | FileCheck %s
# RUN: not llvm-strip --preserve-dates %p/Inputs/alloc-symtab.o -o - < \
# RUN:      %p/Inputs/alloc-symtab.o 2>&1 | FileCheck %s

# CHECK: error: --preserve-dates requires a file
OpenPOWER on IntegriCloud