From: Bruno Haible Date: Wed, 25 Apr 2007 07:40:58 +0000 (+0000) Subject: Tests for module 'fseeko'. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=781e3fd7df31598e954e82464faf8c69cd3fbeec;p=pspp Tests for module 'fseeko'. --- diff --git a/ChangeLog b/ChangeLog index 314aeb4f7b..a7062cbfc1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-04-25 Bruno Haible + * modules/fseeko-tests: New file. + * tests/test-fseeko.c: New file. + * modules/fseeko: New file. * m4/fseeko.m4: New file. * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO, diff --git a/modules/fseeko-tests b/modules/fseeko-tests new file mode 100644 index 0000000000..055e2af794 --- /dev/null +++ b/modules/fseeko-tests @@ -0,0 +1,10 @@ +Files: +tests/test-fseeko.c + +Depends-on: + +configure.ac: + +Makefile.am: +TESTS += test-fseeko +check_PROGRAMS += test-fseeko diff --git a/tests/test-fseeko.c b/tests/test-fseeko.c new file mode 100644 index 0000000000..1b4c9e8d1e --- /dev/null +++ b/tests/test-fseeko.c @@ -0,0 +1,34 @@ +/* Test of fseeko() function. + Copyright (C) 2007 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 + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Bruno Haible , 2007. */ + +#include + +#include + +/* Get off_t. */ +#include + +int +main () +{ + off_t pos = fseeko (stdin, (off_t)0, SEEK_CUR); + (void)pos; + + return 0; +}