More more closure tests to the closure test directory

This commit is contained in:
Anthony Green 2019-11-22 19:27:34 -05:00
parent a37cc1755c
commit c88c0e92a9
22 changed files with 23 additions and 1 deletions

View File

@ -47,7 +47,13 @@ for {set i 1} {$i < 82} {incr i} {
set tlist [lsort [glob -nocomplain -- $srcdir/$subdir/test-callback.c]]
for {set i 1} {$i < 81} {incr i} {
run-many-tests $tlist [format "-DDGTEST=%d %s" $i $warning_options]
if { [libffi_feature_test "#if FFI_CLOSURES"] } {
run-many-tests $tlist [format "-DDGTEST=%d %s" $i $warning_options]
} else {
foreach test $tlist {
unsupported [format "%s -DDGTEST=%d %s" $test $i $warning_options]
}
}
}
dg-finish

View File

@ -43,6 +43,22 @@ if { [libffi_feature_test "#if FFI_CLOSURES"] } {
}
}
set tlist [lsort [glob -nocomplain -- $srcdir/$subdir/*.cc]]
# No C++ for or1k
if { [istarget "or1k-*-*"] } {
foreach test $tlist {
unsupported "$test"
}
} else {
if { [libffi_feature_test "#if FFI_CLOSURES"] } {
run-many-tests $tlist $additional_options
} else {
foreach test $tlist {
unsupported "$test"
}
}
dg-finish
# Local Variables: