Bug 204317 - Regression tests none/tests/cmdline[12] fail if the gdb path detected by configure differs from /usr/bin/gdb
Summary: Regression tests none/tests/cmdline[12] fail if the gdb path detected by conf...
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Bart Van Assche
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-18 20:27 UTC by Bart Van Assche
Modified: 2009-08-21 00:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bart Van Assche 2009-08-18 20:27:38 UTC
Version:            (using KDE 4.3.0)
Compiler:          gcc 4.3.2 gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)
OS:                Linux
Installed from:    SuSE RPMs

Platform: Fedora 10, i386.

Result of ./configure CFLAGS=-pipe && make -s && make -s check && make -s regtest:
== 476 tests, 5 stderr failures, 3 stdout failures, 0 post failures ==
memcheck/tests/origin5-bz2               (stderr)
none/tests/cmdline1                      (stdout)
none/tests/cmdline2                      (stdout)
none/tests/x86/insn_ssse3                (stdout)
none/tests/x86/insn_ssse3                (stderr)
none/tests/x86/ssse3_misaligned          (stderr)
helgrind/tests/tc06_two_races_xml        (stderr)
exp-ptrcheck/tests/supp                  (stderr)

$ head -n 9999 none/tests/cmdline*diff*                                                                              
==> none/tests/cmdline1.stdout.diff <==                                        
--- cmdline1.stdout.exp 2009-08-17 21:36:42.000000000 +0200                    
+++ cmdline1.stdout.out 2009-08-18 22:12:40.000000000 +0200                    
@@ -31,7 +31,7 @@
     --suppressions=<filename> suppress errors described in <filename>
     --gen-suppressions=no|yes|all    print suppressions for errors? [no]
     --db-attach=no|yes        start debugger when errors detected? [no]
-    --db-command=<command>    command to start debugger [/usr/bin/gdb -nw %f %p]
+    --db-command=<command>    command to start debugger [/no/gdb/was/found/at/configure/time -nw %f %p]
     --input-fd=<number>       file descriptor for input [0=stdin]
     --dsymutil=no|yes         run dsymutil on Mac OS X when helpful? [no]
     --max-stackframe=<number> assume stack switch for SP changes larger

==> none/tests/cmdline2.stdout.diff <==
--- cmdline2.stdout.exp 2009-08-17 21:36:41.000000000 +0200
+++ cmdline2.stdout.out 2009-08-18 22:12:41.000000000 +0200
@@ -31,7 +31,7 @@
     --suppressions=<filename> suppress errors described in <filename>
     --gen-suppressions=no|yes|all    print suppressions for errors? [no]
     --db-attach=no|yes        start debugger when errors detected? [no]
-    --db-command=<command>    command to start debugger [/usr/bin/gdb -nw %f %p]
+    --db-command=<command>    command to start debugger [/no/gdb/was/found/at/configure/time -nw %f %p]
     --input-fd=<number>       file descriptor for input [0=stdin]
     --dsymutil=no|yes         run dsymutil on Mac OS X when helpful? [no]
     --max-stackframe=<number> assume stack switch for SP changes larger
Comment 1 Bart Van Assche 2009-08-18 20:31:28 UTC
Valgrind version: 3.5.0-TEST2
Comment 2 Nicholas Nethercote 2009-08-18 23:07:35 UTC
This will be an easy fix, none/tests/filter_cmdline1 just needs to filter out the GDB location.  Bart, once 3.5.0 has been released, can you please fix it?  Thanks.
Comment 3 Bart Van Assche 2009-08-19 11:38:51 UTC
OK, I will have a look at this after the 3.5.0 release. By the way, a more appropriate description for this issue would have been as follows: "Regression tests none/tests/cmdline1 and none/tests/cmdline2 fail if the gdb path detected by configure differs from /usr/bin/gdb."
Comment 4 Nicholas Nethercote 2009-08-20 00:15:27 UTC
You can edit bug titles, just click on them and you get an edit box.  (It's not obvious with this bugzilla installation.)  I've changed the title for you.
Comment 5 Bart Van Assche 2009-08-20 20:39:16 UTC
Fixed in r10855.
Comment 6 Nicholas Nethercote 2009-08-21 00:50:22 UTC
Closing.