continue
}
- if { [regexp ".*\\.a$" $binfile] } {
+ if { $binfile eq "tmpdir/" } {
+ # compile only
+ } elseif { [regexp ".*\\.a$" $binfile] } {
if { ![ar_simple_create $ar $ld_options $binfile "$objfiles $ld_after"] } {
set failed 1
}
set link_cmd $ld
}
- if ![$link_proc $link_cmd $binfile "-L$srcdir/$subdir $ld_options $objfiles"] {
+ if { $binfile eq "tmpdir/" } {
+ # compile only
+ pass $testname
+ continue;
+ } elseif ![$link_proc $link_cmd $binfile "-L$srcdir/$subdir $ld_options $objfiles"] {
set failed 1
- } else {
- set failed 0
}
# Check if exec_output is expected.
set cc_cmd $CC
}
- if { [regexp ".*\\.a$" $binfile] } {
+ if { $binfile eq "tmpdir/" } {
+ # compile only
+ } elseif { [regexp ".*\\.a$" $binfile] } {
if { ![ar_simple_create $ar $ldflags $binfile "$objfiles"] } {
fail $testname
set failed 1
- } else {
- set failed 0
}
} else {
if { ![ld_simple_link $cc_cmd $binfile "-L$srcdir/$subdir $ldflags $objfiles"] } {
set failed 1
- } else {
- set failed 0
}
# Check if exec_output is expected.
}
}
}
-
- if { $failed != 0 } {
- fail $testname
- } else { if { $is_unresolved == 0 } {
- pass $testname
- } }
}
- # Catch action errors.
- if { $is_unresolved != 0 } {
+ if { $failed != 0 } {
+ fail $testname
+ } elseif { $is_unresolved == 0 } {
+ pass $testname
+ } else {
unresolved $testname
continue
}