loader.exp (gcj_loader_test_one): Fix typo in 'type' argument to libjava_tcompile.
* libjava.loader/loader.exp (gcj_loader_test_one): Fix typo in 'type' argument to libjava_tcompile. (gcj_loader_run): Use libjava_tcompile instead of running GCJ_UNDER_TEST directly. From-SVN: r59351
This commit is contained in:
parent
d1bf262d83
commit
5f2925a72d
2 changed files with 12 additions and 2 deletions
|
@ -13,7 +13,7 @@ proc gcj_loader_test_one {srcfile} {
|
|||
set args [libjava_arguments link]
|
||||
lappend args "additional_flags=--main=[file rootname [file tail $srcfile]] $srcdir/$subdir/MyLoader.java $objdir/dummy.o"
|
||||
set x [prune_warnings \
|
||||
[libjava_tcompile $srcfile "$executable" "$executable" $args]]
|
||||
[libjava_tcompile $srcfile "$executable" executable $args]]
|
||||
|
||||
if { $x != "" } {
|
||||
verbose "target_compile failed: $x" 2
|
||||
|
@ -44,8 +44,11 @@ proc gcj_loader_run {} {
|
|||
}
|
||||
pass "bytecompile $file"
|
||||
|
||||
set args [libjava_arguments compile]
|
||||
lappend args "additional_flags=--resource $objdir/dummy.class"
|
||||
set x [prune_warnings \
|
||||
[eval exec "$GCJ_UNDER_TEST --resource $objdir/dummy.class -c $objdir/dummy.class -o $objdir/dummy.o"]]
|
||||
[libjava_tcompile "$objdir/dummy.class" "$objdir/dummy.o" object $args]]
|
||||
|
||||
if { $x != "" } {
|
||||
verbose "resource compilation failed: $x" 2
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue