Move strace -m/explicit location test to strace.exp
authorKeith Seitz <keiths@redhat.com>
Thu, 13 Aug 2015 18:56:50 +0000 (11:56 -0700)
committerKeith Seitz <keiths@redhat.com>
Mon, 17 Aug 2015 18:57:01 +0000 (11:57 -0700)
One of the build slaves shows this error running explicit.exp:

(gdb) strace -m gdbfoobarbaz
Remote failure reply: E.In-process agent library not loaded in process.
Fast and static tracepoints unavailable.
(gdb) FAIL: gdb.linespec/explicit.exp: strace -m gdbfoobarbaz

There are two big problems with this test:
1) The expected output is actually not what the test is meant to test for.
2) This test should really only run where it is supported.

This is most easily fixed by moving the test to gdb.trace/strace.exp.

gdb/testsuite/ChangeLog

* gdb.linespec/explicit.exp: Move strace test from here ...
* gdb.trace/strace.exp: ... to here.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.linespec/explicit.exp
gdb/testsuite/gdb.trace/strace.exp

index 37ed04303cf50da43c739466bbd31a8c3c74a441..9a7cf8814eb49584fb8d3751f14eef84ebcc10d5 100644 (file)
@@ -1,3 +1,8 @@
+2015-08-17  Keith Seitz  <keiths@redhat.com>
+
+       * gdb.linespec/explicit.exp: Move strace test from here ...
+       * gdb.trace/strace.exp: ... to here.
+
 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
 
        * gdb.base/kill-detach-inferiors-cmd.exp: New test file.
index 344f1b008d44f8db81bb81f0c0c149202f9c0c14..a0851cdc5d2258df158e226dd3715c95da118c16 100644 (file)
@@ -86,10 +86,6 @@ namespace eval $testfile {
     add linespecs "-function myfunction -label top -line 3" $location(top)
     add linespecs "-line 3" $location(normal)
 
-    # Test that static tracepoints on marker ID are not interpreted
-    # as an erroneous explicit option.
-    gdb_test "strace -m gdbfoobarbaz" "You can't do that.*"
-
     # Fire up gdb.
     if {![runto_main]} {
        return -1
index 8610fdf5545c13c6e6ce54218c25c52e61f16176..e0a40824e7a51f6794155fc6aab51889d9d8c64c 100644 (file)
@@ -390,6 +390,11 @@ if { ![gdb_target_supports_trace] } then {
     return -1
 }
 
+# Double-check that marker ID ("-m") is not mistaken for an explicit location
+# flag.
+gdb_test "strace -m gdbfoobarbaz" \
+    "No known static tracepoint marker named gdbfoobarbaz"
+
 strace_probe_marker
 
 strace_trace_on_same_addr "trace"
This page took 0.032173 seconds and 4 git commands to generate.