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
+7 -1
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