# HG changeset patch # User Thien-Thi Nguyen # Date 1084210244 0 # Node ID 70c5b89b216b95c9d2dd75a18dfc9725dafbf0ce # Parent 0658d9d79cd75f573b907c5132ff04c12100a1cc (main): For failing cases, exit with `EXIT_FAILURE'. diff -r 0658d9d79cd7 -r 70c5b89b216b lib-src/test-distrib.c --- 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;