at 18.09-beta 1.6 kB view raw
1--- a/test/suites/debug_prefix_map.bash 2+++ b/test/suites/debug_prefix_map.bash 3@@ -29,7 +29,7 @@ 4 expect_stat 'cache hit (preprocessed)' 0 5 expect_stat 'cache miss' 1 6 expect_stat 'files in cache' 2 7- if grep -E "[^=]`pwd`[^=]" test.o >/dev/null 2>&1; then 8+ if objdump -g test.o | grep ": `pwd`$" >/dev/null 2>&1; then 9 test_failed "Source dir (`pwd`) found in test.o" 10 fi 11 12@@ -39,7 +39,7 @@ 13 expect_stat 'cache hit (preprocessed)' 0 14 expect_stat 'cache miss' 1 15 expect_stat 'files in cache' 2 16- if grep -E "[^=]`pwd`[^=]" test.o >/dev/null 2>&1; then 17+ if objdump -g test.o | grep ": `pwd`$" >/dev/null 2>&1; then 18 test_failed "Source dir (`pwd`) found in test.o" 19 fi 20 21@@ -52,10 +52,10 @@ 22 expect_stat 'cache hit (preprocessed)' 0 23 expect_stat 'cache miss' 1 24 expect_stat 'files in cache' 2 25- if grep -E "[^=]`pwd`[^=]" test.o >/dev/null 2>&1; then 26+ if objdump -g test.o | grep ": `pwd`$" >/dev/null 2>&1; then 27 test_failed "Source dir (`pwd`) found in test.o" 28 fi 29- if ! grep "name" test.o >/dev/null 2>&1; then 30+ if ! objdump -g test.o | grep ": name$" >/dev/null 2>&1; then 31 test_failed "Relocation (name) not found in test.o" 32 fi 33 34@@ -65,7 +65,7 @@ 35 expect_stat 'cache hit (preprocessed)' 0 36 expect_stat 'cache miss' 1 37 expect_stat 'files in cache' 2 38- if grep -E "[^=]`pwd`[^=]" test.o >/dev/null 2>&1; then 39+ if objdump -g test.o | grep ": `pwd`$" >/dev/null 2>&1; then 40 test_failed "Source dir (`pwd`) found in test.o" 41 fi 42 }