On Fri, 29 Aug 2014 15:13:26 +0200, Jan Kratochvil wrote: > 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? > > I think it would be best to modify the testcase so that the '. -> symlink' > is made in a special subdirectory so that the *.exp files loop cannot occur > even if the symlink is left there. Done here. Therefore it no longer tries to delete the symlink as it no longer does any harm: $ ls -l testsuite/gdb.base/argv0-symlink.* -rw-r--r-- 1 jkratoch jkratoch 803 Aug 29 21:59 testsuite/gdb.base/argv0-symlink.c -rw-r--r-- 1 jkratoch jkratoch 2839 Aug 29 21:59 testsuite/gdb.base/argv0-symlink.exp testsuite/gdb.base/argv0-symlink.d: total 16 -rwxr-xr-x 1 jkratoch jkratoch 9493 Aug 29 22:45 argv0-symlink* lrwxrwxrwx 1 jkratoch jkratoch 1 Aug 29 22:45 argv0-symlink-dirlink -> ./ lrwxrwxrwx 1 jkratoch jkratoch 13 Aug 29 22:45 argv0-symlink-filelink -> argv0-symlink* -rw-r--r-- 1 jkratoch jkratoch 2824 Aug 29 22:45 argv0-symlink0.o $ _ Jan