projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ecoff testsuite fixes
[deliverable/binutils-gdb.git]
/
gold
/
testsuite
/
ver_test_4.sh
diff --git
a/gold/testsuite/ver_test_4.sh
b/gold/testsuite/ver_test_4.sh
index f125f2b59d0b66405f2927324980fdf0323f681f..b7ffdffafc82b7a76590214551c9419769b573b7 100755
(executable)
--- a/
gold/testsuite/ver_test_4.sh
+++ b/
gold/testsuite/ver_test_4.sh
@@
-2,7
+2,7
@@
# ver_test_4.sh -- test that version symbol is visible.
# ver_test_4.sh -- test that version symbol is visible.
-# Copyright (C) 2008-20
14
Free Software Foundation, Inc.
+# Copyright (C) 2008-20
20
Free Software Foundation, Inc.
# Written by Ian Lance Taylor <iant@google.com>.
# This file is part of gold.
# Written by Ian Lance Taylor <iant@google.com>.
# This file is part of gold.
@@
-24,17
+24,18
@@
check()
{
check()
{
- if !
grep -q "$2" "$1
"
+ if !
sed '/\.symtab/q' "$1" | grep -q "$2
"
then
echo "Did not find expected symbol in $1:"
echo " $2"
echo ""
echo "Actual output below:"
then
echo "Did not find expected symbol in $1:"
echo " $2"
echo ""
echo "Actual output below:"
-
cat
"$1"
+
sed '/\.symtab/q'
"$1"
exit 1
fi
}
exit 1
fi
}
+check ver_test_4.syms "t1_2\$"
check ver_test_4.syms "t1_2@@VER2"
check ver_test_4.syms "t2_2@VER1"
check ver_test_4.syms "t2_2@@VER2"
check ver_test_4.syms "t1_2@@VER2"
check ver_test_4.syms "t2_2@VER1"
check ver_test_4.syms "t2_2@@VER2"
This page took
0.023473 seconds
and
4
git commands to generate.