testsuite: Unify the C and C++ testsuites

These two testsuites differ only in the source file glob and a couple of
additional compiler options; unify the remaining bits.
This commit is contained in:
Josh Triplett
2014-03-16 16:53:42 -07:00
parent 0d9cce8edb
commit 3f97cf3413
6 changed files with 6 additions and 33 deletions

View File

@@ -20,6 +20,9 @@ libffi-init
global srcdir subdir
run-many-tests [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] ""
if { [string match $using_gcc "yes"] } {
run-many-tests [lsort [glob -nocomplain $srcdir/$subdir/*.cc]] "-shared-libgcc -lstdc++"
}
dg-finish