This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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]

Re: testcase for "absolute source" patch


Hello, Michael!

On Fri, Aug 27, 2004 at 10:16:21AM -0400, Michael Chastain wrote:
> The first time I run openp.exp, I get 4 non-PASS results:

This is what I've asked in
http://sources.redhat.com/ml/gdb-patches/2004-08/msg00539.html .


> The second time I run openp.exp, it crashes and burns:

The attached version should fix that.


> . add a ChangeLog entry

	* gdb.base/openp.c:
	gdb.base/openp.exp: New test checking where gdb looks for binary
	and source files.


> . add some code at the top to check for build != host

Done.


> . since the script does not work with build != host, you can simplify
>   all the "remote_exec host" calls to TCL primitives that run on the
>   build machine anyways.  Like: "file mkdir ...".  Your choice.
>   If you like "remote_exec host", you can keep it.

I like it, since it works now and marks clearly the commands for the
host. It can wait in the wings.


> . error checking on every external call.  Sometimes directory creation
>   does fail.

How does one do that? I've tried the following:

if [catch {remote_exec host "mkdir ...

It didn't fail when mkdir failed.


With kind regards,
Baurjan.

Attachment: openp.exp
Description: Text document


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