testsuite: Unify the C and C++ testsuites
authorJosh Triplett <josh@joshtriplett.org>
Sun, 16 Mar 2014 23:53:42 +0000 (16:53 -0700)
committerJosh Triplett <josh@joshtriplett.org>
Mon, 17 Mar 2014 03:34:46 +0000 (20:34 -0700)
These two testsuites differ only in the source file glob and a couple of
additional compiler options; unify the remaining bits.

testsuite/Makefile.am
testsuite/libffi.call/call.exp
testsuite/libffi.call/ffitestcxx.h [moved from testsuite/libffi.special/ffitestcxx.h with 100% similarity]
testsuite/libffi.call/unwindtest.cc [moved from testsuite/libffi.special/unwindtest.cc with 100% similarity]
testsuite/libffi.call/unwindtest_ffi_call.cc [moved from testsuite/libffi.special/unwindtest_ffi_call.cc with 100% similarity]
testsuite/libffi.special/special.exp [deleted file]

index edc6e61..44738c9 100644 (file)
@@ -82,9 +82,9 @@ libffi.call/struct6.c libffi.call/return_ll.c libffi.call/struct9.c   \
 libffi.call/return_sc.c libffi.call/struct7.c                          \
 libffi.call/cls_align_uint64.c libffi.call/cls_4byte.c                 \
 libffi.call/strlen_win32.c libffi.call/cls_6_1_byte.c                  \
-libffi.call/cls_7_1_byte.c libffi.special/unwindtest.cc                        \
-libffi.special/special.exp libffi.special/unwindtest_ffi_call.cc       \
-libffi.special/ffitestcxx.h lib/wrapper.exp lib/target-libpath.exp     \
+libffi.call/cls_7_1_byte.c libffi.call/unwindtest.cc                   \
+libffi.call/unwindtest_ffi_call.cc     \
+libffi.call/ffitestcxx.h lib/wrapper.exp lib/target-libpath.exp        \
 lib/libffi.exp libffi.call/cls_struct_va1.c                            \
 libffi.call/cls_uchar_va.c libffi.call/cls_uint_va.c                   \
 libffi.call/cls_ulong_va.c libffi.call/cls_ushort_va.c                 \
index c1ad737..90e400f 100644 (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
 
diff --git a/testsuite/libffi.special/special.exp b/testsuite/libffi.special/special.exp
deleted file mode 100644 (file)
index f7155bf..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright (C) 2003, 2006, 2009, 2010 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; see the file COPYING3.  If not see
-# <http://www.gnu.org/licenses/>.
-
-dg-init
-libffi-init
-
-global srcdir subdir
-
-if { [string match $using_gcc "yes"] } {
-  run-many-tests [lsort [glob -nocomplain $srcdir/$subdir/*.cc]] "-shared-libgcc -lstdc++"
-}
-
-dg-finish
-
-# Local Variables:
-# tcl-indent-level:4
-# End: