]> git.eshelyaron.com Git - emacs.git/commitdiff
(main): For failing cases, exit with `EXIT_FAILURE'.
authorThien-Thi Nguyen <ttn@gnuvola.org>
Mon, 10 May 2004 17:40:08 +0000 (17:40 +0000)
committerThien-Thi Nguyen <ttn@gnuvola.org>
Mon, 10 May 2004 17:40:08 +0000 (17:40 +0000)
lib-src/ChangeLog
lib-src/test-distrib.c

index 16db1575beee006b6f0f2e3eab3f79c517d06eea..8e20e219ee88b08ebd553ea5e8b450c84ddab410 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-10  Thien-Thi Nguyen  <ttn@gnu.org>
+
+       * test-distrib.c (main): For failing cases, exit with `EXIT_FAILURE'.
+
 2004-05-10  Thien-Thi Nguyen  <ttn@gnu.org>
 
        * test-distrib.c: Conditionally include fcntl.h.
index 9b720e1fc24ee332f32047fc4f82089fc7d4ec28..04dfe5caed89b5a602849eaecef78a9f9537141f 100644 (file)
@@ -79,13 +79,13 @@ main (argc, argv)
   if (argc != 2)
     {
       fprintf (stderr, "Usage: %s testfile\n", argv[0]);
-      exit (2);
+      exit (EXIT_FAILURE);
     }
   fd = open (argv[1], O_RDONLY);
   if (fd < 0)
     {
       perror (argv[1]);
-      exit (2);
+      exit (EXIT_FAILURE);
     }
   if (cool_read (fd, buf, sizeof string1) != sizeof string1 ||
       strcmp (buf, string1) ||
@@ -96,7 +96,7 @@ main (argc, argv)
 Most likely this means that many nonprinting characters\n\
 have been corrupted in the files of Emacs, and it will not work.\n",
               argv[1]);
-      exit (2);
+      exit (EXIT_FAILURE);
     }
   close (fd);
   return EXIT_SUCCESS;