Update of /cvsroot/boost/boost/libs/regex/test/c_compiler_checks
In directory 
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv7957/libs/regex/test/c_compiler_checks

Modified Files:
        posix_api_check.cpp 
Log Message:
Change asserts to tests.

Index: posix_api_check.cpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/regex/test/c_compiler_checks/posix_api_check.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- posix_api_check.cpp 21 Jan 2005 17:26:10 -0000      1.8
+++ posix_api_check.cpp 26 Feb 2007 09:46:09 -0000      1.9
@@ -21,6 +21,7 @@
 #include <string.h>
 #include <boost/assert.hpp>
 #include <boost/regex.h>
+#include <boost/detail/lightweight_test.hpp>
 
 const char* expression = "^";
 const char* text = "\n      ";
@@ -42,7 +43,7 @@
       printf(buf);
       return result;
    }
-   BOOST_ASSERT(re.re_nsub == 0);
+   BOOST_TEST(re.re_nsub == 0);
    matches[0].rm_so = 0;
    matches[0].rm_eo = strlen(text);
    result = regexec(&re, text, 1, matches, REG_NOTBOL | REG_NOTEOL | 
REG_STARTEND);
@@ -54,10 +55,10 @@
       regfree(&re);
       return result;
    }
-   BOOST_ASSERT(matches[0].rm_so == matches[0].rm_eo == 1);
+   BOOST_TEST(matches[0].rm_so == matches[0].rm_eo == 1);
    regfree(&re);
    printf("no errors found\n");
-   return 0;
+   return boost::report_errors();
 }
 
 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to