Disable two tests on FreeMiNT.
authorBruno Haible <bruno@clisp.org>
Sun, 1 Mar 2009 00:32:16 +0000 (01:32 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 1 Mar 2009 00:32:16 +0000 (01:32 +0100)
ChangeLog
tests/test-freadseek.c
tests/test-ftello.c

index fc7b505c4fa3ebdd1879ab0b726aa84b5ec196eb..1100b264974373dd0ac2b10bd0f74514fe1af70e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-28  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-freadseek.c (main): Disable test beyond end of file on FreeMiNT.
+       * tests/test-ftello.c (main): Likewise.
+       Patch by Alan Hourihane <alanh@fairlite.co.uk>.
+
 2009-02-28  Bruno Haible  <bruno@clisp.org>
 
        Add tentative support for FreeMiNT.
index f7d349a281e2c88cd88a9a26fe3ef9781cb4c0e3..7071909051290ff52276428af1708d46ef4301bc 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of freadseek() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-2009 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
@@ -92,10 +92,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;
 }
index 621ceda977fda526a4fcaac0f95ecf486d2f9b43..d3401ee419aef15e49fa4c797102d9cc4cd19593 100644 (file)
@@ -111,12 +111,14 @@ main (int argc, char **argv)
       ASSERT (ftello (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 = ftello (stdin);
   ASSERT (fseek (stdin, 10, SEEK_END) == 0);
   ASSERT (ftell (stdin) == ch + 10);
   ASSERT (ftello (stdin) == ch + 10);
+#endif
 
   return 0;
 }