diff options
author | Ben Elliston <bje@gnu.org> | 2011-03-09 11:51:01 +1100 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2011-03-09 15:54:18 +1100 |
commit | 54f20a63a44f26030afc51fc6abeeeb0f4a22598 (patch) | |
tree | 91b65728165cc641838b75e5851d6b876f2978f1 /testsuite | |
parent | e19e15a5d5eb36077187491166bd60f4bf8855a8 (diff) | |
download | dejagnu-54f20a63a44f26030afc51fc6abeeeb0f4a22598.zip dejagnu-54f20a63a44f26030afc51fc6abeeeb0f4a22598.tar.gz dejagnu-54f20a63a44f26030afc51fc6abeeeb0f4a22598.tar.bz2 |
* Makefile.am (DISTCLEANFILES): Define.
* Makefile.in: Regenerate.
* testsuite/runtest.all/libs.exp: Clean up temp files on exit.
* testsuite/runtest.all/options.exp: Likewise for dbg.log.
* testsuite/runtest.all/stats.exp: Likewise for tmpdir. Use "file
mkdir" instead of exec'ing mkdir(1).
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/runtest.all/libs.exp | 3 | ||||
-rw-r--r-- | testsuite/runtest.all/options.exp | 3 | ||||
-rw-r--r-- | testsuite/runtest.all/stats.exp | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/testsuite/runtest.all/libs.exp b/testsuite/runtest.all/libs.exp index 5fc1aeb..d9e621d 100644 --- a/testsuite/runtest.all/libs.exp +++ b/testsuite/runtest.all/libs.exp @@ -84,3 +84,6 @@ make_defaults_file [pwd]/setval.tmp foreach i [glob $srcdir/$subdir/*.test] { process_test $i } + +# Clean up behind ourselves. +file delete .tmp [pwd]/setval.tmp diff --git a/testsuite/runtest.all/options.exp b/testsuite/runtest.all/options.exp index 0bfcfec..7dd8d7e 100644 --- a/testsuite/runtest.all/options.exp +++ b/testsuite/runtest.all/options.exp @@ -89,3 +89,6 @@ if [file exists $objdir/x.sum] { if [file exists $objdir/xXx.sum] { exec rm -f $objdir/xXx.* } +if [file exists dbg.log] { + file delete dbg.log +} diff --git a/testsuite/runtest.all/stats.exp b/testsuite/runtest.all/stats.exp index 1ca78a1..decac7c 100644 --- a/testsuite/runtest.all/stats.exp +++ b/testsuite/runtest.all/stats.exp @@ -28,7 +28,7 @@ if ![info exists tmpdir] { } if ![file isdirectory $tmpdir] { - catch "exec mkdir $tmpdir" + catch "file mkdir $tmpdir" } set tests { @@ -53,3 +53,5 @@ foreach t $tests { pass [lindex $t 0] } } + +file delete -force $tmpdir |