[PATCH] D138305: [bolt] Make test/X86/end-symbol.test not use "tac"

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 18 08:34:56 PST 2022


thakis created this revision.
thakis added a reviewer: maksfb.
Herald added a reviewer: rafauler.
Herald added subscribers: treapster, ayermolo.
Herald added a reviewer: Amir.
Herald added a project: All.
thakis requested review of this revision.
Herald added a subscriber: yota9.

"tac" doesn't exist on macOS, so this makes the test pass there.


https://reviews.llvm.org/D138305

Files:
  bolt/test/X86/end-symbol.test


Index: bolt/test/X86/end-symbol.test
===================================================================
--- bolt/test/X86/end-symbol.test
+++ bolt/test/X86/end-symbol.test
@@ -1,6 +1,6 @@
 # RUN: yaml2obj %p/Inputs/plt-sec.yaml &> %t.exe
 # RUN: llvm-bolt %t.exe -o %t.out
-# RUN: (llvm-readelf --program-headers %t.out | tac ; llvm-nm %t.out) \
+# RUN: (llvm-readelf --program-headers %t.out | grep LOAD | tail -n 1 ; llvm-nm %t.out) \
 # RUN:   | FileCheck %s
 
 ## Check that llvm-bolt correctly updates _end symbol to match the end of the


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138305.476494.patch
Type: text/x-patch
Size: 544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221118/531cde4b/attachment.bin>


More information about the llvm-commits mailing list