/* Test of getdelim() 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
if (!(expr)) \
{ \
fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
+ fflush (stderr); \
abort (); \
} \
} \
if (!f || fwrite ("anbcnd\0f", 1, 8, f) != 8 || fclose (f) != 0)
{
fputs ("Failed to create sample file.\n", stderr);
- unlink ("test-getdelim.txt");
+ remove ("test-getdelim.txt");
return 1;
}
f = fopen ("test-getdelim.txt", "rb");
if (!f)
{
fputs ("Failed to reopen sample file.\n", stderr);
- unlink ("test-getdelim.txt");
+ remove ("test-getdelim.txt");
return 1;
}
free (line);
fclose (f);
- unlink ("test-getdelim.txt");
+ remove ("test-getdelim.txt");
return 0;
}