diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-02-09 20:06:30 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-02-09 20:06:30 +0000 |
commit | 4c5e9062fdb06dad6d660a5abf4a96723eced198 (patch) | |
tree | e8129c67b25809a4580cddb56e6138f4c2e7c7d5 /test/Object | |
parent | 909a321521e871254d5a1ee2d782eca48134f96a (diff) |
test: adjust the test for the BSD format
The padding for ld64 changes the header to include the padding. Adjust
the test to account for this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294619 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Object')
-rw-r--r-- | test/Object/archive-extract.test | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/Object/archive-extract.test b/test/Object/archive-extract.test index 50372d530d8..a3c69e50151 100644 --- a/test/Object/archive-extract.test +++ b/test/Object/archive-extract.test @@ -37,11 +37,16 @@ ; RUN: rm -f very_long_bytecode_file_name.bc ; RUN: llvm-ar xo %p/Inputs/GNU.a very_long_bytecode_file_name.bc ; RUN: rm -f %t.a -; RUN: llvm-ar rcU %t.a very_long_bytecode_file_name.bc -; RUN: env TZ=GMT llvm-ar tv %t.a | FileCheck %s +; RUN: llvm-ar -format gnu rcU %t.a very_long_bytecode_file_name.bc +; RUN: env TZ=GMT llvm-ar tv %t.a | FileCheck %s -check-prefix CHECK-GNU -CHECK: 1465 2004-11-19 03:01:31.000000000 very_long_bytecode_file_name.bc +CHECK-GNU: 1465 2004-11-19 03:01:31.000000000 very_long_bytecode_file_name.bc +; RUN: rm -f %t.a +; RUN: llvm-ar -format bsd rcU %t.a very_long_bytecode_file_name.bc +; RUN: env TZ=GMT llvm-ar tv %t.a | FileCheck %s -check-prefix CHECK-BSD + +CHECK-BSD: 1472 2004-11-19 03:01:31.000000000 very_long_bytecode_file_name.bc RUN: not llvm-ar x %p/Inputs/GNU.a foo.o 2>&1 | FileCheck --check-prefix=NOTFOUND %s NOTFOUND: foo.o was not found |