GNU bug report logs - #44712
Inconsistent directory lookup of executable in dejagnu.exp/host_execute

Previous Next

Package: dejagnu;

Reported by: Robert Menteer <reetnem <at> mac.com>

Date: Tue, 17 Nov 2020 19:16:02 UTC

Severity: normal

Done: Jacob Bachmeyer <jcb62281 <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Robert Menteer <reetnem <at> mac.com>
To: Robert Menteer via Bug-dejagnu <bug-dejagnu <at> gnu.org>
Subject: Inconsistent directory lookup of executable in
 dejagnu.exp/host_execute
Date: Tue, 17 Nov 2020 14:15:25 -0500
[Message part 1 (text/plain, inline)]
If you call ‘host_execute /fullpath/testsuite/unit-test/unit’, host_execute can find the unit test but not execute it.

If you call ‘host_execute /testsuite/unit-test/unit’, host_execute can’t find the unit test (but could execute it).

If you call ‘host_execute testsuite/unit-test/unit’, host_execute works.

This is because the lookup of the executable is done using:

if {![file exists ${executable}]} 

And the executing is done using:

spawn -noecho "./$executable" ${params}

Please make the usage of $executable consistent and document how host_execute should be called.
[Message part 2 (text/html, inline)]

This bug report was last modified 4 years and 243 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.