This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] gdb.python tests, fix up paths
- From: Phil Muldoon <pmuldoon at redhat dot com>
- To: Matt Rice <ratmice at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 04 Jul 2011 11:09:04 +0100
- Subject: Re: [patch] gdb.python tests, fix up paths
- References: <CACTLOFpVfjCGNj=B4Gi_rymcg+DNmWrDrJRLEqFtTPk3cu3xxg@mail.gmail.com>
- Reply-to: pmuldoon at redhat dot com
Matt Rice <ratmice@gmail.com> writes:
> This fixes some issues with the paths,
> i'm seeing these all as './gdb.python/' here.
>
> 2011-07-03 Matt Rice <ratmice@gmail.com>
>
> * gdb.python/python.exp: Update filename paths.
> * gdb.python/py-symtab.exp: Ditto.
> diff --git a/gdb/testsuite/gdb.python/py-symtab.exp b/gdb/testsuite/gdb.python/py-symtab.exp
> index c52f5ef..ef35c5d 100644
> --- a/gdb/testsuite/gdb.python/py-symtab.exp
> +++ b/gdb/testsuite/gdb.python/py-symtab.exp
> @@ -54,13 +54,13 @@ gdb_py_test_silent_cmd "python sal = frame.find_sal()" "Get block" 0
> gdb_py_test_silent_cmd "python symtab = sal.symtab" "Get block" 0
>
> # Test sal.
> -gdb_test "python print sal.symtab" "gdb/testsuite/gdb.python/py-symbol.c.*" "Test symtab"
> +gdb_test "python print sal.symtab" ".*gdb.python/py-symbol.c.*" "Test symtab"
While this is okay, and right now reflects how we test, I am curious to
see what paths your testsuite instance is seeing. Are you building
in-tree or out-of-tree (not that it matters beyond curiosity, the tests
should work regardless). Needs a testsuite/ChangeLog too.
> In addition to these, I'm getting another error I haven't been able to
> figure out.
> the logs are pretty silent on the subject, here is the only useful
> info i've found...
> py-objfile-script-gdb.py consistently disappears after running the testsuite.
I can't test this right now due to the binutils bug you reported. When
that is resolved, I will take a look.
Cheers
Phil