From: Saleem Abdulrasool Date: Thu, 9 Feb 2017 20:06:30 +0000 (+0000) Subject: test: adjust the test for the BSD format X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c5e9062fdb06dad6d660a5abf4a96723eced198;p=llvm 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 --- 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