]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Extract objdump_cmd to test/run where it belongs
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 2 Jul 2019 11:42:33 +0000 (13:42 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 2 Jul 2019 11:42:33 +0000 (13:42 +0200)
test/run
test/suites/debug_prefix_map.bash

index f4f501fea34e142785bb265e966743d05b5c5d00..2a1a03a9bc42a16e0889ffaaab2d7913e60dbc4b 100755 (executable)
--- a/test/run
+++ b/test/run
@@ -110,6 +110,16 @@ file_size() {
     wc -c $1 | awk '{print $1}'
 }
 
+objdump_cmd() {
+    if $HOST_OS_APPLE; then
+        xcrun dwarfdump -r0 $1
+    elif $HOST_OS_FREEBSD; then
+        objdump -W $1
+    else
+        objdump -g $1
+    fi
+}
+
 expect_stat() {
     local stat="$1"
     local expected_value="$2"
index d00e654767c14b233a4cb53632af21d4fac9a7bd..b68cf462ab6f25fb4b1b68816d30a96d953ab475 100644 (file)
@@ -20,16 +20,6 @@ EOF
     backdate dir1/include/test.h dir2/include/test.h
 }
 
-objdump_cmd() {
-    if $HOST_OS_APPLE; then
-        xcrun dwarfdump -r0 $1
-    elif $HOST_OS_FREEBSD; then
-        objdump -W $1
-    else
-        objdump -g $1
-    fi
-}
-
 grep_cmd() {
     if $HOST_OS_APPLE; then
         grep "( \"$1\" )"