diff options
author | Josh Triplett <josh@joshtriplett.org> | 2014-03-16 16:04:58 -0700 |
---|---|---|
committer | Josh Triplett <josh@joshtriplett.org> | 2014-03-16 20:34:46 -0700 |
commit | 5695ec1444c5323e48fe4314f8c8f027625e67df (patch) | |
tree | e4853b0508ec91b102d6c76d1e562d21bede8822 /testsuite/libffi.call/call.exp | |
parent | dfdb02cc869855d3b68571e5f7aa77ae8c9d254a (diff) | |
download | libffi-5695ec1444c5323e48fe4314f8c8f027625e67df.tar.gz |
testsuite: Factor out a function to run a matrix of tests
This commons up code from libffi.call/call.exp and
libffi.special/special.exp, unifies the optimization option matrix
between the two, and makes it easier to add more axes to the matrix
in the future.
Diffstat (limited to 'testsuite/libffi.call/call.exp')
-rw-r--r-- | testsuite/libffi.call/call.exp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/testsuite/libffi.call/call.exp b/testsuite/libffi.call/call.exp index c334685..c1ad737 100644 --- a/testsuite/libffi.call/call.exp +++ b/testsuite/libffi.call/call.exp @@ -19,20 +19,7 @@ libffi-init global srcdir subdir -if { [string match $using_gcc "yes"] } { - - dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] "-O0 -W -Wall" "" - dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] "-O2" "" - dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] "-O3" "" - dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] "-Os" "" - dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] "-O2 -fomit-frame-pointer" "" - -} else { - - # Assume we are using the vendor compiler. - dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] "" "" - -} +run-many-tests [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] "" dg-finish |