projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New module 'astrxfrm'.
[gnulib.git]
/
tests
/
test-strverscmp.c
diff --git
a/tests/test-strverscmp.c
b/tests/test-strverscmp.c
index
605b0f6
..
d734815
100644
(file)
--- a/
tests/test-strverscmp.c
+++ b/
tests/test-strverscmp.c
@@
-1,5
+1,5
@@
/* Test of strverscmp() function.
/* Test of strverscmp() function.
- Copyright (C) 2008 Free Software Foundation, Inc.
+ Copyright (C) 2008
, 2009, 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
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
@@
-19,25
+19,15
@@
#include <config.h>
#include <config.h>
-#include
"strverscmp.h"
+#include
<string.h>
-#include
<stdio.h>
-#include <stdlib.h>
+#include
"signature.h"
+SIGNATURE_CHECK (strverscmp, int, (const char *, const char *));
-#define ASSERT(expr) \
- do \
- { \
- if (!(expr)) \
- { \
- fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
- fflush (stderr); \
- abort (); \
- } \
- } \
- while (0)
+#include "macros.h"
int
int
-main (
int argc, char **argv
)
+main (
void
)
{
ASSERT (strverscmp ("", "") == 0);
ASSERT (strverscmp ("a", "a") == 0);
{
ASSERT (strverscmp ("", "") == 0);
ASSERT (strverscmp ("a", "a") == 0);