bug-gnulib
[Top][All Lists]
Advanced

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

Re: [patch #6758] Add support for Atari FreeMiNT OS


From: Bruno Haible
Subject: Re: [patch #6758] Add support for Atari FreeMiNT OS
Date: Sun, 1 Mar 2009 01:34:47 +0100
User-agent: KMail/1.9.9

Alan Hourihane wrote:
> I know. It's a kernel issue that needs dealing with

OK, if you already know it's a kernel issue, it's certainly not a problem
caused by your proposed ftello / fseek... patches. So I'm applying your patch:


2009-02-28  Bruno Haible  <address@hidden>

        * tests/test-freadseek.c (main): Disable test beyond end of file on 
FreeMiNT.
        * tests/test-ftello.c (main): Likewise.
        Patch by Alan Hourihane <address@hidden>.

--- tests/test-freadseek.c.orig 2009-03-01 01:31:50.000000000 +0100
+++ tests/test-freadseek.c      2009-03-01 01:30:09.000000000 +0100
@@ -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 @@
   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;
 }
--- tests/test-ftello.c.orig    2009-03-01 01:31:50.000000000 +0100
+++ tests/test-ftello.c 2009-03-01 01:30:09.000000000 +0100
@@ -111,12 +111,14 @@
       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;
 }




reply via email to

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