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 e288a8dea9cfe4ecea6f9a8a6e202721f74692cc..1c0c1a7c304bc2197c727764ff3cad79fa954fb4 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 beac5c18533eb3df9e7c6fde614875ccb75c1965..3baf183dd53c0356ee25eaded1d25c3c6bdaf0bb 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;