This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix test cases to work for i386.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1fa5f68bf38fc29f173990614db70fed1b66c0e0

commit 1fa5f68bf38fc29f173990614db70fed1b66c0e0
Author: Cary Coutant <ccoutant@gmail.com>
Date:   Wed Jan 11 11:26:26 2017 -0800

    Fix test cases to work for i386.
    
    gold/
    	PR gold/21039
    	* testsuite/script_test_13.sh: Adjust patterns to work for i386.
    	* testsuite/script_test_15a.sh: Likewise.
    	* testsuite/script_test_15b.sh: Likewise.
    	* testsuite/script_test_15c.sh: Likewise.

Diff:
---
 gold/ChangeLog                    | 8 ++++++++
 gold/testsuite/script_test_13.sh  | 2 +-
 gold/testsuite/script_test_15a.sh | 4 ++--
 gold/testsuite/script_test_15b.sh | 4 ++--
 gold/testsuite/script_test_15c.sh | 4 ++--
 5 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/gold/ChangeLog b/gold/ChangeLog
index 1a3f9a0..f97433a 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,11 @@
+2017-01-11  Cary Coutant  <ccoutant@gmail.com>
+
+	PR gold/21039
+	* testsuite/script_test_13.sh: Adjust patterns to work for i386.
+	* testsuite/script_test_15a.sh: Likewise.
+	* testsuite/script_test_15b.sh: Likewise.
+	* testsuite/script_test_15c.sh: Likewise.
+
 2017-01-11  Alan Modra  <amodra@gmail.com>
 
 	* powerpc.cc (class Powerpc_copy_relocs): New.
diff --git a/gold/testsuite/script_test_13.sh b/gold/testsuite/script_test_13.sh
index 6f57888..39bd30c 100755
--- a/gold/testsuite/script_test_13.sh
+++ b/gold/testsuite/script_test_13.sh
@@ -38,4 +38,4 @@ check()
     fi
 }
 
-check "script_test_13.stdout" "\\.rela\\.dyn[[:space:]]\\+RELA[[:space:]]\\+0\\+10000\\b"
+check "script_test_13.stdout" "\.rela\?\.dyn[[:space:]]\+RELA\?[[:space:]]\+0\+10000\b"
diff --git a/gold/testsuite/script_test_15a.sh b/gold/testsuite/script_test_15a.sh
index dd038e8..bfebb6b 100755
--- a/gold/testsuite/script_test_15a.sh
+++ b/gold/testsuite/script_test_15a.sh
@@ -37,5 +37,5 @@ check()
     fi
 }
 
-check script_test_15a.stdout "LOAD.*0x000... 0x001... RW"
-check script_test_15a.stdout "01.*\\.data .*\\.data.extra .*\\.bss"
+check script_test_15a.stdout "LOAD.*0x0\+0... 0x0\+1... RW"
+check script_test_15a.stdout "01.*\.data .*\.data.extra .*\.bss"
diff --git a/gold/testsuite/script_test_15b.sh b/gold/testsuite/script_test_15b.sh
index a902caf..3f6444b 100755
--- a/gold/testsuite/script_test_15b.sh
+++ b/gold/testsuite/script_test_15b.sh
@@ -38,5 +38,5 @@ check()
     fi
 }
 
-check script_test_15b.stdout "LOAD.*0x001... 0x001... RW"
-check script_test_15b.stdout "01.*\\.bss .*\\.data .*\\.data.extra"
+check script_test_15b.stdout "LOAD.*0x0\+1... 0x0\+1... RW"
+check script_test_15b.stdout "01.*\.bss .*\.data .*\.data.extra"
diff --git a/gold/testsuite/script_test_15c.sh b/gold/testsuite/script_test_15c.sh
index 3f7d581..bb319ed 100755
--- a/gold/testsuite/script_test_15c.sh
+++ b/gold/testsuite/script_test_15c.sh
@@ -38,5 +38,5 @@ check()
     fi
 }
 
-check script_test_15c.stdout "LOAD.*0x000... 0x001... RW"
-check script_test_15c.stdout "01.*\\.data .*\\.data.extra .*\\.bss"
+check script_test_15c.stdout "LOAD.*0x0\+0... 0x0\+1... RW"
+check script_test_15c.stdout "01.*\.data .*\.data.extra .*\.bss"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]