gdb.trace/change-loc.exp: Don't depend on tracepoint ordering.
authorMarcin Kościelnicki <koriakin@0x04.net>
Sat, 5 Mar 2016 17:55:40 +0000 (18:55 +0100)
committerMarcin Kościelnicki <koriakin@0x04.net>
Wed, 9 Mar 2016 17:45:19 +0000 (18:45 +0100)
powerpc (32-bit) loads shared libraries below the main executable, so
the PENDING location is the first one, which the current regex doesn't
match.  Split it into two tests instead, one looking for the pending
tracepoint location, and the other for two installed locations.

gdb/testsuite/ChangeLog:

* gdb.trace/change-loc.exp: Don't depend on tracepoint location
ordering.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/change-loc.exp

index ce2a190d3fad24266425716ddad1106fc98d5e24..fe68a01df06e2e7622c97f326caafad49531ec2c 100644 (file)
@@ -1,3 +1,8 @@
+2016-03-09  Marcin Kościelnicki  <koriakin@0x04.net>
+
+       * gdb.trace/change-loc.exp: Don't depend on tracepoint location
+       ordering.
+
 2016-03-09  Marcin Kościelnicki  <koriakin@0x04.net>
 
        * gdb.trace/unavailable-dwarf-piece.c (foo): Add foo_start_lbl label.
index 80beb4de6e48509fd8cbc36fb0c216b3fee7e342..c4e0b4bafeb4fdaf267e523e3ffb0984c2447ba8 100644 (file)
@@ -152,8 +152,14 @@ proc tracepoint_change_loc_1 { trace_type } {
        gdb_test "info trace" \
            "Num     Type\[ \]+Disp Enb Address\[ \]+What.*
 \[0-9\]+\[\t \]+\(|fast \)tracepoint\[ \]+keep y.*\<MULTIPLE\>.*
-4\.1.* in func4.*\tinstalled on target\r\n(4\.2.* in func4.*\tinstalled on target\r\n4\.3.* \<PENDING\>\[\t \]+set_tracepoint|4\.2.* \<PENDING\>\[\t \]+set_tracepoint.*4\.3.* in func4.*\tinstalled on target).*" \
-           "tracepoint with two locations (unload)"
+(4\.\[1-3].* in func4.*\tinstalled on target.*){2}" \
+           "tracepoint with two locations - installed (unload)"
+
+       gdb_test "info trace" \
+           "Num     Type\[ \]+Disp Enb Address\[ \]+What.*
+\[0-9\]+\[\t \]+\(|fast \)tracepoint\[ \]+keep y.*\<MULTIPLE\>.*
+4\.\[1-3].* \<PENDING\>\[\t \]+set_tracepoint.*" \
+           "tracepoint with two locations - pending (unload)"
 
        gdb_test_no_output "tstop"
 
@@ -262,8 +268,14 @@ proc tracepoint_change_loc_2 { trace_type } {
        gdb_test "info trace" \
            "Num     Type\[ \]+Disp Enb Address\[ \]+What.*
 \[0-9\]+\[\t \]+\(|fast \)tracepoint\[ \]+keep y.*\<MULTIPLE\>.*
-1\.1.* in func4.*\tinstalled on target\r\n(1\.2.* in func4.*\tinstalled on target\r\n1\.3.* \<PENDING\>\[\t \]+set_tracepoint|1\.2.* \<PENDING\>\[\t \]+set_tracepoint\r\n1\.3.* in func4.*\tinstalled on target).*" \
-           "tracepoint with two locations (unload)"
+(1\.\[1-3].* in func4.*\tinstalled on target.*){2}" \
+           "tracepoint with two locations - installed (unload)"
+
+       gdb_test "info trace" \
+           "Num     Type\[ \]+Disp Enb Address\[ \]+What.*
+\[0-9\]+\[\t \]+\(|fast \)tracepoint\[ \]+keep y.*\<MULTIPLE\>.*
+1\.\[1-3].* \<PENDING\>\[\t \]+set_tracepoint.*" \
+           "tracepoint with two locations - pending (unload)"
 
        gdb_test_no_output "tstop"
 
This page took 0.030033 seconds and 4 git commands to generate.