[patch] [testsuite] Fix running in-src-dir in the same directory twice
Jan Kratochvil
jan.kratochvil@redhat.com
Fri Aug 29 12:49:00 GMT 2014
On Thu, 28 Aug 2014 23:53:59 +0200, Doug Evans wrote:
> Tests can prematurely terminate for various unanticipatable reasons.
> Can this be solved by making sure any possibly hazardous left
> over files are cleaned up at start?
Do you mean start of argv0-symlink.exp? There was/is already:
remote_file host delete [standard_output_file $filelink]
set status [remote_exec host "ln -sf ${testfile} [standard_output_file $filelink]"]
Or do you mean moving this 'remote_file host delete' to the very start of the
testcase - that is just moving it before [build_executable]?
I do not know if there is a possibility to register some cleanup function for
the current testcase. But also I do not know how the testcase could end by
a different codepath than those I protected in the patch.
Thanks,
Jan
More information about the Gdb-patches
mailing list