summaryrefslogtreecommitdiffstats
path: root/libjava/testsuite/lib/libjava.exp
diff options
context:
space:
mode:
authormark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-14 22:17:00 +0000
committermark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-14 22:17:00 +0000
commitec08f43d6c58eacb35bf8283c9eb464050263d98 (patch)
treec5d462dc49bef0030514a6f63d9936b6e3c2d955 /libjava/testsuite/lib/libjava.exp
parent8935d57caeb4b0c237a8d37d6591760d272a0638 (diff)
downloadppe42-gcc-ec08f43d6c58eacb35bf8283c9eb464050263d98.tar.gz
ppe42-gcc-ec08f43d6c58eacb35bf8283c9eb464050263d98.zip
* lib/libjava.exp (test_libjava_from_javac): Don't create .o files
containing $ characters and always quote class files with "'"s. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62919 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/lib/libjava.exp')
-rw-r--r--libjava/testsuite/lib/libjava.exp4
1 files changed, 3 insertions, 1 deletions
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
OpenPOWER on IntegriCloud