target-supports.exp (check_iconv_available): Fix fallout from 2004-05-28 patch.
authorGraham Stott <graham.stott@btinternet.com>
Sun, 30 May 2004 17:51:46 +0000 (17:51 +0000)
committerGraham Stott <grahams@gcc.gnu.org>
Sun, 30 May 2004 17:51:46 +0000 (17:51 +0000)
* lib/target-supports.exp (check_iconv_available): Fix fallout
from 2004-05-28 patch.

From-SVN: r82460

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index 6d0c44bf1ea20c5396caddeab83ece1bff597e1b..6d5e0a563eb13d4843f5235e42bb7f1f472850b3 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-30  Graham Stott  <graham.stott@btinternet.com>
+
+       * lib/target-supports.exp (check_iconv_available): Fix fallout
+       from 2004-05-28 patch.
+
 2004-05-30  Paul Brook  <paul@codesourcery.com>
 
        PR fortran/15620
index aee7016bf8708c0cd80ce4c6ce38053db473dd9e..e23a8ecda542c771b9c281c2de5a12ff77272ee9 100644 (file)
@@ -239,13 +239,13 @@ proc check_iconv_available { test_what } {
 
     set lines [${tool}_target_compile $src $exe executable "libs=$libiconv" ]
     file delete $src
-    remote_file build delete $exe
 
     if [string match "" $lines] then {
        # No error messages, everything is OK.
 
-       set result [${tool}_load "./tmp.x" "" ""]
+       set result [${tool}_load "./$exe" "" ""]
        set status [lindex $result 0];
+       remote_file build delete $exe
 
        verbose "check_iconv_available status is <$status>" 2