[Box Backup-commit] COMMIT r1682 - box/chris/general/test/common

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sat May 26 14:01:04 BST 2007


Author: chris
Date: 2007-05-26 14:01:04 +0100 (Sat, 26 May 2007)
New Revision: 1682

Modified:
   box/chris/general/test/common/testcommon.cpp
Log:
Fix regex tests for HAVE_REGEX_SUPPORT


Modified: box/chris/general/test/common/testcommon.cpp
===================================================================
--- box/chris/general/test/common/testcommon.cpp	2007-05-26 12:54:49 UTC (rev 1681)
+++ box/chris/general/test/common/testcommon.cpp	2007-05-26 13:01:04 UTC (rev 1682)
@@ -752,7 +752,7 @@
 		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);
@@ -784,7 +784,7 @@
 		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);




More information about the Boxbackup-commit mailing list