chiark / gitweb /
lib/ tests now use Automake's test infrastructure, and are split into
[disorder] / lib / t-printf.c
index be57bc81de876637612ce85a81e48a5cad77c0f0..85b85c911447051765effbe0726dab15303419a1 100644 (file)
@@ -19,7 +19,7 @@
  */
 #include "test.h"
 
-void test_printf(void) {
+static void test_printf(void) {
   char c;
   short s;
   int i;
@@ -32,7 +32,6 @@ void test_printf(void) {
   char buffer[16];
   FILE *fp;
   
-  fprintf(stderr, "test_printf\n");
   check_string(do_printf("%d", 999), "999");
   check_string(do_printf("%d", -999), "-999");
   check_string(do_printf("%i", 999), "999");
@@ -132,6 +131,8 @@ void test_printf(void) {
   fclose(fp);
 }
 
+TEST(printf);
+
 /*
 Local Variables:
 c-basic-offset:2