From 25b5e5c45c8f72108fd5849496236f5dfe09e44d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 25 Apr 2007 07:52:28 +0000 Subject: [PATCH] Tests for module 'ftello'. --- ChangeLog | 3 +++ modules/ftello-tests | 10 ++++++++++ tests/test-ftello.c | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 modules/ftello-tests create mode 100644 tests/test-ftello.c diff --git a/ChangeLog b/ChangeLog index b5f1ee170..8eff7d978 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-04-25 Bruno Haible + * modules/ftello-tests: New file. + * tests/test-ftello.c: New file. + * modules/ftello: New file. * m4/ftello.m4: New file. * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO, diff --git a/modules/ftello-tests b/modules/ftello-tests new file mode 100644 index 000000000..fef915900 --- /dev/null +++ b/modules/ftello-tests @@ -0,0 +1,10 @@ +Files: +tests/test-ftello.c + +Depends-on: + +configure.ac: + +Makefile.am: +TESTS += test-ftello +check_PROGRAMS += test-ftello diff --git a/tests/test-ftello.c b/tests/test-ftello.c new file mode 100644 index 000000000..3feefe147 --- /dev/null +++ b/tests/test-ftello.c @@ -0,0 +1,34 @@ +/* Test of ftello() 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 = ftello (stdin); + (void)pos; + + return 0; +} -- 2.11.0