Update wcsmbs tests to use the support test driver
authorWainer dos Santos Moschetta <wainersm@linux.vnet.ibm.com>
Tue, 4 Apr 2017 21:05:20 +0000 (18:05 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 4 Apr 2017 21:05:20 +0000 (18:05 -0300)
Replaced test-skeleton.c with support/test-driver.c and
adjusted the tests accordinly.

Checked on x86_64-linux-gnu.

* wcsmbs/tst-btowc.c: Import support/test-driver.c and remove
the TEST_FUNCTION macro definition.
* wcsmbs/tst-mbrtowc2.c: Likewise.
* wcsmbs/tst-mbsrtowcs.c: Likewise.
* wcsmbs/tst-wchar-h.c: Likewise.
* wcsmbs/tst-wcpncpy.c: Likewise.
* wcsmbs/tst-wcrtomb.c: Likewise.
* wcsmbs/tst-wcsnlen.c: Likewise.
* wcsmbs/tst-wcstof.c: Likewise.

ChangeLog
wcsmbs/tst-btowc.c
wcsmbs/tst-mbrtowc2.c
wcsmbs/tst-mbsrtowcs.c
wcsmbs/tst-wchar-h.c
wcsmbs/tst-wcpncpy.c
wcsmbs/tst-wcrtomb.c
wcsmbs/tst-wcsnlen.c
wcsmbs/tst-wcstof.c

index 37a7625..7bc2507 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2017-04-04  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
+
+       * wcsmbs/tst-btowc.c: Import support/test-driver.c and remove
+       the TEST_FUNCTION macro definition.
+       * wcsmbs/tst-mbrtowc2.c: Likewise.
+       * wcsmbs/tst-mbsrtowcs.c: Likewise.
+       * wcsmbs/tst-wchar-h.c: Likewise.
+       * wcsmbs/tst-wcpncpy.c: Likewise.
+       * wcsmbs/tst-wcrtomb.c: Likewise.
+       * wcsmbs/tst-wcsnlen.c: Likewise.
+       * wcsmbs/tst-wcstof.c: Likewise.
+
 2017-04-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
        * nptl/pthread_create.c (START_THREAD_DEFN): Remove
index 00c9f23..670ee22 100644 (file)
@@ -173,5 +173,4 @@ do_test (void)
   return result;
 }
 
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
+#include <support/test-driver.c>
index 67d8e29..975043a 100644 (file)
@@ -63,5 +63,4 @@ t (const char *ch, size_t nch, const char *loc)
   return ret;
 }
 
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
+#include <support/test-driver.c>
index bed76bf..91ce116 100644 (file)
@@ -63,5 +63,4 @@ do_test (void)
   return result;
 }
 
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
+#include <support/test-driver.c>
index fd2ad56..047ba6c 100644 (file)
@@ -8,5 +8,4 @@ do_test (void)
   return sizeof (x) - sizeof (mbstate_t);
 }
 
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
+#include <support/test-driver.c>
index 17a31fb..99b00a5 100644 (file)
@@ -75,5 +75,4 @@ do_test (void)
   return result;
 }
 
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
+#include <support/test-driver.c>
index 052a254..a506fe7 100644 (file)
@@ -93,5 +93,4 @@ check_ascii (const char *locname)
   return res != 0;
 }
 
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
+#include <support/test-driver.c>
index e057885..89b5212 100644 (file)
@@ -49,5 +49,4 @@ do_test (void)
   return result;
 }
 
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
+#include <support/test-driver.c>
index d3d75f8..5b7cdea 100644 (file)
@@ -30,5 +30,4 @@ do_test (void)
   return result;
 }
 
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
+#include <support/test-driver.c>