From 394a76de7328db70e7511ebb5b271d76e9bac2bf Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 14 Feb 2003 22:17:00 +0000 Subject: [PATCH] libjava.exp (test_libjava_from_javac): Don't create .o files containing $ characters and always quote class files with... * lib/libjava.exp (test_libjava_from_javac): Don't create .o files containing $ characters and always quote class files with "'"s. From-SVN: r62919 --- libjava/testsuite/ChangeLog | 5 +++++ libjava/testsuite/lib/libjava.exp | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index 47b08a42831..9a2e9b38b5a 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-02-14 Mark Wielaard + + * lib/libjava.exp (test_libjava_from_javac): Don't create .o files + containing $ characters and always quote class files with "'"s. + 2003-02-14 Mark Wielaard * libjava.mauve/mauve.exp (mauve_compute_uses): Add inner class diff --git a/libjava/testsuite/lib/libjava.exp b/libjava/testsuite/lib/libjava.exp index 05cf08fe8e3..d9aa178d654 100644 --- a/libjava/testsuite/lib/libjava.exp +++ b/libjava/testsuite/lib/libjava.exp @@ -787,8 +787,10 @@ proc test_libjava_from_javac { options srcfile compile_args inpfile resultfile e if {$mode == "compile"} { foreach c_file $class_files { set executable [file rootname [file tail $c_file]].o + # Don't write files which contain $ chars. + set executable [string map {$ ^} $executable] set x [libjava_prune_warnings \ - [libjava_tcompile $c_file "$executable" $type $args]] + [libjava_tcompile '$c_file' "$executable" $type $args]] lappend removeList $executable if {$x != ""} { break -- 2.43.5