From: Bruno Haible Date: Sun, 1 Mar 2009 00:32:16 +0000 (+0100) Subject: Disable two tests on FreeMiNT. X-Git-Tag: v0.1~6249 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=134efcf3ec401132e2d949189f6abaee003078ef;p=gnulib.git Disable two tests on FreeMiNT. --- diff --git a/ChangeLog b/ChangeLog index fc7b505c4..1100b2649 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2009-02-28 Bruno Haible + * tests/test-freadseek.c (main): Disable test beyond end of file on FreeMiNT. + * tests/test-ftello.c (main): Likewise. + Patch by Alan Hourihane . + +2009-02-28 Bruno Haible + Add tentative support for FreeMiNT. * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code. * lib/fflush.c (clear_ungetc_buffer): Likewise. diff --git a/tests/test-freadseek.c b/tests/test-freadseek.c index f7d349a28..707190905 100644 --- a/tests/test-freadseek.c +++ b/tests/test-freadseek.c @@ -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; } diff --git a/tests/test-ftello.c b/tests/test-ftello.c index 621ceda97..d3401ee41 100644 --- a/tests/test-ftello.c +++ b/tests/test-ftello.c @@ -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; }