Commit 80e26b66 authored by Thien-Thi Nguyen's avatar Thien-Thi Nguyen

(main): For failing cases, exit with `EXIT_FAILURE'.

parent e109331a
2004-05-10 Thien-Thi Nguyen <ttn@gnu.org>
* test-distrib.c (main): For failing cases, exit with `EXIT_FAILURE'.
2004-05-08 Jason Rumney <jasonr@gnu.org>
* makefile.w32-in (lisp1, lisp2): Split lisp to avoid long
......
......@@ -80,13 +80,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) ||
......@@ -97,7 +97,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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment