Mercurial > emacs
changeset 55500:70c5b89b216b
(main): For failing cases, exit with `EXIT_FAILURE'.
author | Thien-Thi Nguyen <ttn@gnuvola.org> |
---|---|
date | Mon, 10 May 2004 17:30:44 +0000 |
parents | 0658d9d79cd7 |
children | cb74de063b76 |
files | lib-src/test-distrib.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/test-distrib.c Mon May 10 16:56:13 2004 +0000 +++ b/lib-src/test-distrib.c Mon May 10 17:30:44 2004 +0000 @@ -80,13 +80,13 @@ 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 @@ 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;