>From de63ff6fd3769d9644fc9153f3d2f2ea2721da48 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sat, 28 Aug 2010 09:09:08 +0200 Subject: [PATCH 3/4] Tests for module 'realloc'. * modules/realloc-tests: New file. * tests/test-realloc.c: New file. --- ChangeLog | 4 ++++ modules/realloc-tests | 11 +++++++++++ tests/test-realloc.c | 24 ++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 0 deletions(-) create mode 100644 modules/realloc-tests create mode 100644 tests/test-realloc.c diff --git a/ChangeLog b/ChangeLog index 7c399b1..626d8cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2010-08-28 Ralf Wildenhues + Tests for module 'realloc'. + * modules/realloc-tests: New file. + * tests/test-realloc.c: New file. + Tests for module 'malloc'. * modules/malloc-tests: New file. * tests/test-malloc.c: New file. diff --git a/modules/realloc-tests b/modules/realloc-tests new file mode 100644 index 0000000..63a167c --- /dev/null +++ b/modules/realloc-tests @@ -0,0 +1,11 @@ +Files: +tests/test-realloc.c + +Depends-on: + +configure.ac: + +Makefile.am: +TESTS += test-realloc +check_PROGRAMS += test-realloc + diff --git a/tests/test-realloc.c b/tests/test-realloc.c new file mode 100644 index 0000000..645e7a4 --- /dev/null +++ b/tests/test-realloc.c @@ -0,0 +1,24 @@ +/* Test of realloc function. + Copyright (C) 2010 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 3 of the License, 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, see . */ + +#include +#include + +int +main () +{ + return ! realloc (0, 0); +} -- 1.7.2.1.222.g9988