Disable a test on FreeMiNT.
authorBruno Haible <bruno@clisp.org>
Thu, 5 Mar 2009 23:53:47 +0000 (00:53 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 5 Mar 2009 23:53:47 +0000 (00:53 +0100)
ChangeLog
tests/test-ftell.c

index 795c34f..4c7fe2d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-03-05  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-ftell.c (main): Disable test beyond end of file on
+       FreeMiNT.
+       Patch by Alan Hourihane <alanh@fairlite.co.uk>.
+
 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
 
        * lib/filevercmp.c: Move hidden files up in ordering.
index 845d944..71f3ed2 100644 (file)
@@ -101,11 +101,13 @@ main (int argc, char **argv)
       ASSERT (ftell (stdin) == 2);
     }
 
+#if !defined __MINT__ /* FreeMiNT has problems seeking past end of file */
   /* Test ftell beyond end of file.  */
   ASSERT (fseek (stdin, 0, SEEK_END) == 0);
   ch = ftell (stdin);
   ASSERT (fseek (stdin, 10, SEEK_END) == 0);
   ASSERT (ftell (stdin) == ch + 10);
+#endif
 
   return 0;
 }