bug#44712: Inconsistent directory lookup of executable in dejagnu.exp/host_execute
Robert Menteer via Bug-dejagnu via <[email protected]> Tue, 17 Nov 2020 14:15:25 -0500
| Newsgroups | gmane.comp.sysutils.dejagnu.bugs |
|---|---|
| Message-ID | <[email protected]> |
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.
_______________________________________________
Bug-dejagnu mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-dejagnu