chiark / gitweb /
lib/ tests now use Automake's test infrastructure, and are split into
[disorder] / lib / t-filepart.c
index 1bf55f34f6fa8f221fc2addb858cfc641bba98e7..d2e741b4c009365f038d53915fb47e4511576fcf 100644 (file)
@@ -1,3 +1,4 @@
+
 /*
  * This file is part of DisOrder.
  * Copyright (C) 2005, 2007, 2008 Richard Kettlewell
@@ -19,8 +20,7 @@
  */
 #include "test.h"
 
-void test_filepart(void) {
-  fprintf(stderr, "test_filepart\n");
+static void test_filepart(void) {
   check_string(d_dirname("/"), "/");
   check_string(d_dirname("////"), "/");
   check_string(d_dirname("/spong"), "/");
@@ -47,6 +47,8 @@ void test_filepart(void) {
   check_string(strip_extension("foo.bar/wibble.spong"), "foo.bar/wibble");
 }
 
+TEST(filepart);
+
 /*
 Local Variables:
 c-basic-offset:2