emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lib-src/test-distrib.c [emacs-unicode-2]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lib-src/test-distrib.c [emacs-unicode-2]
Date: Mon, 28 Jun 2004 04:37:23 -0400

Index: emacs/lib-src/test-distrib.c
diff -c emacs/lib-src/test-distrib.c:1.12.10.1 
emacs/lib-src/test-distrib.c:1.12.10.2
*** emacs/lib-src/test-distrib.c:1.12.10.1      Fri Apr 16 12:49:44 2004
--- emacs/lib-src/test-distrib.c        Mon Jun 28 07:28:23 2004
***************
*** 80,92 ****
    if (argc != 2)
      {
        fprintf (stderr, "Usage: %s testfile\n", argv[0]);
!       exit (2);
      }
    fd = open (argv[1], O_RDONLY);
    if (fd < 0)
      {
        perror (argv[1]);
!       exit (2);
      }
    if (cool_read (fd, buf, sizeof string1) != sizeof string1 ||
        strcmp (buf, string1) ||
--- 80,92 ----
    if (argc != 2)
      {
        fprintf (stderr, "Usage: %s testfile\n", argv[0]);
!       exit (EXIT_FAILURE);
      }
    fd = open (argv[1], O_RDONLY);
    if (fd < 0)
      {
        perror (argv[1]);
!       exit (EXIT_FAILURE);
      }
    if (cool_read (fd, buf, sizeof string1) != sizeof string1 ||
        strcmp (buf, string1) ||
***************
*** 97,110 ****
  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);
      }
    close (fd);
! #ifdef VMS
!   exit (1);                   /* On VMS, success is 1.  */
! #endif
!   return (0);
  }
  
  /* arch-tag: 3a89005d-df98-4c32-aa9f-33570e16a26a
     (do not change this comment) */
--- 97,109 ----
  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 (EXIT_FAILURE);
      }
    close (fd);
!   return EXIT_SUCCESS;
  }
  
  /* arch-tag: 3a89005d-df98-4c32-aa9f-33570e16a26a
     (do not change this comment) */
+ 
+ /* test-distrib.c ends here */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]