maint: update copyright
[gnulib.git] / tests / test-freadseek.c
index ffe3cec..3903f57 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of freadseek() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2014 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 #include <string.h>
 #include <unistd.h>
 
-#define ASSERT(expr) \
-  do                                                                        \
-    {                                                                       \
-      if (!(expr))                                                          \
-        {                                                                   \
-          fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
-          abort ();                                                         \
-        }                                                                   \
-    }                                                                       \
-  while (0)
+#include "macros.h"
 
 int
 main (int argc, char **argv)
@@ -91,10 +82,12 @@ main (int argc, char **argv)
   ASSERT (fgetc (stdin) == EOF);
   ASSERT (!ferror (stdin));
 
+#if !defined __MINT__ /* FreeMiNT has problems seeking past end of file */
   /* Test move beyond end of file.  */
   ASSERT (freadseek (stdin, 1000000) == 0);
   ASSERT (fgetc (stdin) == EOF);
   ASSERT (!ferror (stdin));
+#endif
 
   return 0;
 }