filenamecat.c: Add a test.
authorJim Meyering <jim@meyering.net>
Mon, 24 Sep 2007 11:43:03 +0000 (13:43 +0200)
committerJim Meyering <jim@meyering.net>
Mon, 24 Sep 2007 11:43:15 +0000 (13:43 +0200)
* lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
showing how the function works when DIR is the empty string.

ChangeLog
lib/filenamecat.c

index e288a8d..1c0c1a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-09-24  Jim Meyering  <jim@meyering.net>
+
+       filenamecat.c: Add a test.
+       * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
+       showing how the function works when DIR is the empty string.
+
 2007-09-21  Simon Josefsson  <simon@josefsson.org>
 
        * tests/test-canonicalize.sh: Turn on executable bit.
index beac5c1..3baf183 100644 (file)
@@ -121,6 +121,7 @@ main ()
       {"a", "/",  "a/"},   /* this might deserve a diagnostic */
       {"/a", "/", "/a/"},  /* this might deserve a diagnostic */
       {"a", "//b",  "a/b"},
+      {"", "a", "a"},  /* this might deserve a diagnostic */
     };
   size_t i;
   bool fail = false;