aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2010-05-28 00:50:11 +0200
committerKamil Dudka <kdudka@redhat.com>2010-05-28 00:50:11 +0200
commit75743b009b5fb15dc018b571effb43b81c84e248 (patch)
tree0855ea23f3ffa4f7bcf9171391deb49a2a692105 /tests/libtest
parent01459828efdbc2621c18c2bf2f6f8f365413ef41 (diff)
lib577: avoid redefinition of ERROR
Diffstat (limited to 'tests/libtest')
-rw-r--r--tests/libtest/lib577.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/libtest/lib577.c b/tests/libtest/lib577.c
index fdab361e2..bd52c6251 100644
--- a/tests/libtest/lib577.c
+++ b/tests/libtest/lib577.c
@@ -34,7 +34,7 @@
#define MATCH CURL_FNMATCH_MATCH
#define NOMATCH CURL_FNMATCH_NOMATCH
-#define ERROR CURL_FNMATCH_FAIL
+#define RE_ERR CURL_FNMATCH_FAIL
#define MAX_PATTERN_L 100
#define MAX_STRING_L 100
@@ -48,8 +48,8 @@ struct testcase {
static const struct testcase tests[] = {
/* brackets syntax */
{ "\\[", "[", MATCH },
- { "[", "[", ERROR },
- { "[]", "[]", ERROR },
+ { "[", "[", RE_ERR },
+ { "[]", "[]", RE_ERR },
{ "[][]", "[", MATCH },
{ "[][]", "]", MATCH },
{ "[[]", "[", MATCH },
@@ -177,7 +177,7 @@ static const struct testcase tests[] = {
{ "x", "", NOMATCH },
/* backslash */
- { "\\", "\\", ERROR },
+ { "\\", "\\", RE_ERR },
{ "\\\\", "\\", MATCH },
{ "\\\\", "\\\\", NOMATCH },
{ "\\?", "?", MATCH },