Skip to content

Commit

Permalink
Add long format options to llvm-objdump command
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 461704984
(cherry picked from commit e0de2e9)
  • Loading branch information
stravinskii authored and keith committed Jul 18, 2022
1 parent 76752fe commit 8533494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/apple_shell_testutils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ function assert_objdump_contains() {
local symbol_regexp="$3"

[[ -f "$path" ]] || fail "$path does not exist"
local contents=$(objdump -t --macho --arch="$arch" "$path" | grep -v "*UND*")
local contents=$(objdump --syms --macho --arch="$arch" "$path" | grep -v "*UND*")
echo "$contents" | grep -e "$symbol_regexp" >& /dev/null && return 0
fail "Expected binary '$path' to contain '$symbol_regexp' but it did not." \
"contents were: $contents"
Expand All @@ -622,7 +622,7 @@ function assert_objdump_not_contains() {
local symbol_regexp="$3"

[[ -f "$path" ]] || fail "$path does not exist"
local contents=$(objdump -t --macho --arch="$arch" "$path" | grep -v "*UND*")
local contents=$(objdump --syms --macho --arch="$arch" "$path" | grep -v "*UND*")
echo "$contents" | grep -e "$symbol_regexp" >& /dev/null || return 0
fail "Expected binary '$path' to not contain '$symbol_regexp' but it did." \
"contents were: $contents"
Expand Down

0 comments on commit 8533494

Please sign in to comment.