test-exclude: fix a typo
authorJim Meyering <meyering@redhat.com>
Sat, 12 Nov 2011 15:44:59 +0000 (16:44 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 12 Nov 2011 15:44:59 +0000 (16:44 +0100)
* tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".

ChangeLog
tests/test-exclude.c

index 6b67bd8..4a29566 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-12  Jim Meyering  <meyering@redhat.com>
+
+       test-exclude: fix a typo
+       * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
+
 2011-11-11  Bruno Haible  <bruno@clisp.org>
 
        obstack: Fix compilation error on MSVC 9.
index 47392d9..88af36a 100644 (file)
@@ -107,7 +107,7 @@ main (int argc, char **argv)
 
           /* Skip this test if invoked with -leading-dir on a system that
              lacks support for FNM_LEADING_DIR. */
-          if (strcmp (s, "leading-dir") == 0 && FNM_LEADING_DIR == 0)
+          if (strcmp (s, "leading_dir") == 0 && FNM_LEADING_DIR == 0)
             exit (77);
 
           /* Likewise for -casefold and FNM_CASEFOLD.  */