summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-07-26 22:07:24 +0000
committerChris Wilson <chris+github@qwirx.com>2007-07-26 22:07:24 +0000
commite915f55a45b63e558d2abeb72726d80555039fea (patch)
tree1476568b3b616d670b1568202bc0f36e01735d2b
parentbf880c2b40637c9026e1fb8040220b705338e640 (diff)
Fix regex tests for HAVE_REGEX_SUPPORT. (refs #3, merges [1682])
-rw-r--r--test/common/testcommon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/common/testcommon.cpp b/test/common/testcommon.cpp
index 0f0f1f9a..eb057228 100644
--- a/test/common/testcommon.cpp
+++ b/test/common/testcommon.cpp
@@ -750,7 +750,7 @@ int test(int argc, const char *argv[])
TEST_THAT(elist.SizeOfDefiniteList() == 4);
// Add regex entries
- #ifdef HAVE_REGEX_H
+ #ifdef HAVE_REGEX_SUPPORT
elist.AddRegexEntries(std::string("[a-d]+\\.reg$" "\x01" "EXCLUDE" "\x01" "^exclude$"));
elist.AddRegexEntries(std::string(""));
TEST_CHECK_THROWS(elist.AddRegexEntries(std::string("[:not_valid")), CommonException, BadRegularExpression);
@@ -782,7 +782,7 @@ int test(int argc, const char *argv[])
TEST_THAT(elist.IsExcluded("thingdefthree")
== !CASE_SENSITIVE);
- #ifdef HAVE_REGEX_H
+ #ifdef HAVE_REGEX_SUPPORT
TEST_THAT(elist.IsExcluded(std::string("b.reg")) == true);
TEST_THAT(elist.IsExcluded(std::string("B.reg")) == !CASE_SENSITIVE);
TEST_THAT(elist.IsExcluded(std::string("b.Reg")) == !CASE_SENSITIVE);