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-mbsstr1.c
diff --git
a/tests/test-mbsstr1.c
b/tests/test-mbsstr1.c
index
f2b1e1d
..
33aae10
100644
(file)
--- a/
tests/test-mbsstr1.c
+++ b/
tests/test-mbsstr1.c
@@
-1,5
+1,5
@@
/* Test of searching in a string.
/* Test of searching in a string.
- 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 (); \
} \
} \
@@
-130,10
+131,8
@@
main ()
result = mbsstr (haystack, needle);
ASSERT (result == haystack + m);
}
result = mbsstr (haystack, needle);
ASSERT (result == haystack + m);
}
- if (needle != NULL)
- free (needle);
- if (haystack != NULL)
- free (haystack);
+ free (needle);
+ free (haystack);
}
return 0;
}
return 0;