projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
frexp: test for NetBSD failure on -0.0
[gnulib.git]
/
tests
/
test-getline.c
diff --git
a/tests/test-getline.c
b/tests/test-getline.c
index
6b66d71
..
51fc816
100644
(file)
--- a/
tests/test-getline.c
+++ b/
tests/test-getline.c
@@
-1,5
+1,5
@@
/* Test of getline() function.
/* Test of getline() function.
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007
-2008
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
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
@@
-29,6
+29,7
@@
if (!(expr)) \
{ \
fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
if (!(expr)) \
{ \
fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
+ fflush (stderr); \
abort (); \
} \
} \
abort (); \
} \
} \
@@
-47,14
+48,14
@@
main (int argc, char **argv)
if (!f || fwrite ("a\nbc\nd\0f", 1, 8, f) != 8 || fclose (f) != 0)
{
fputs ("Failed to create sample file.\n", stderr);
if (!f || fwrite ("a\nbc\nd\0f", 1, 8, f) != 8 || fclose (f) != 0)
{
fputs ("Failed to create sample file.\n", stderr);
-
unlink
("test-getline.txt");
+
remove
("test-getline.txt");
return 1;
}
f = fopen ("test-getline.txt", "rb");
if (!f)
{
fputs ("Failed to reopen sample file.\n", stderr);
return 1;
}
f = fopen ("test-getline.txt", "rb");
if (!f)
{
fputs ("Failed to reopen sample file.\n", stderr);
-
unlink
("test-getline.txt");
+
remove
("test-getline.txt");
return 1;
}
return 1;
}
@@
-84,6
+85,6
@@
main (int argc, char **argv)
free (line);
fclose (f);
free (line);
fclose (f);
-
unlink
("test-getline.txt");
+
remove
("test-getline.txt");
return 0;
}
return 0;
}