ecoff testsuite fixes
[deliverable/binutils-gdb.git] / gold / testsuite / arm_exidx_test.sh
index f732a68dd704710bbcf85563f7fee734ab079b1e..ad6b172f8d525e13f7e425d0a6cf60ef92f09a46 100755 (executable)
@@ -2,7 +2,7 @@
 
 # arm_exidx_test.sh -- a test case for .ARM.exidx section.
 
-# Copyright 2011 Free Software Foundation, Inc.
+# Copyright (C) 2011-2020 Free Software Foundation, Inc.
 # Written by Doug Kwan <dougkwan@google.com>.
 
 # This file is part of gold.
@@ -29,10 +29,23 @@ check()
 {
     if ! grep -q "$2" "$1"
     then
-       echo "Did not find section header in $1:"
+       echo "Did not find expected output in $1:"
        echo "   $2"
        echo ""
-       echo "Actual headers below:"
+       echo "Actual output below:"
+       cat "$1"
+       exit 1
+    fi
+}
+
+check_not()
+{
+    if grep -q "$2" "$1"
+    then
+       echo "Found unexpected output in $1:"
+       echo "   $2"
+       echo ""
+       echo "Actual output below:"
        cat "$1"
        exit 1
     fi
@@ -41,5 +54,7 @@ check()
 # Check that SHF_LINK_ORDER is set.
 check arm_exidx_test.stdout ".* .ARM.exidx .* ARM_EXIDX .* AL .*"
 check arm_exidx_test.stdout ".* .ARM.extab .* PROGBITS .* A .*"
+check_not arm_exidx_test.stdout ".* .* R_ARM_GLOB_DAT .* __exidx_start"
+check_not arm_exidx_test.stdout ".* .* R_ARM_GLOB_DAT .* __exidx_end"
 
 exit 0
This page took 0.024569 seconds and 4 git commands to generate.