From 6d55934c65607a0db77403b6b364af25e7ae1a70 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 4 Jan 2014 01:11:00 +0000 Subject: Clean up feature tests: * Split the configure steering script out of the Makefile. * Let the configure step depend on the test sources. * Clean up the test programs such that they can be run. --- test-fgetln.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test-fgetln.c') diff --git a/test-fgetln.c b/test-fgetln.c index 90869cd8..ac225a17 100644 --- a/test-fgetln.c +++ b/test-fgetln.c @@ -1,11 +1,11 @@ +#include #include -#include +#include int main(void) { - char *cp; size_t sz; - cp = fgetln(stdin, &sz); - return 0; + fclose(stdin); + return(NULL != fgetln(stdin, &sz)); } -- cgit v1.2.3