Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79468 - trunk/libs/filesystem/test/issues
From: bdawes_at_[hidden]
Date: 2012-07-13 08:56:36


Author: bemandawes
Date: 2012-07-13 08:56:36 EDT (Fri, 13 Jul 2012)
New Revision: 79468
URL: http://svn.boost.org/trac/boost/changeset/79468

Log:
Add a #error if NDEBUG is defined.
Text files modified:
   trunk/libs/filesystem/test/issues/fchmodat_AT_SYMLINK_NOFOLLOW_6659.cpp | 6 +++++-
   1 files changed, 5 insertions(+), 1 deletions(-)

Modified: trunk/libs/filesystem/test/issues/fchmodat_AT_SYMLINK_NOFOLLOW_6659.cpp
==============================================================================
--- trunk/libs/filesystem/test/issues/fchmodat_AT_SYMLINK_NOFOLLOW_6659.cpp (original)
+++ trunk/libs/filesystem/test/issues/fchmodat_AT_SYMLINK_NOFOLLOW_6659.cpp 2012-07-13 08:56:36 EDT (Fri, 13 Jul 2012)
@@ -7,7 +7,7 @@
 
 // Test this by running:
 //
-// rm -rf data && mkdir data && g++ -otest-fchmodat test-fchmodat.cpp && (cd data && ../test-fchmodat)
+// rm -rf data && mkdir data && g++ -otest-fchmodat fchmodat_AT_SYMLINK_NOFOLLOW_6659.cpp && (cd data && ../test-fchmodat)
 //
 // If no assertions go off, then it looks like fchmodat is supported,
 // but AT_SYMLINK_NOFOLLOW is not supported.
@@ -18,6 +18,10 @@
 #include <sys/stat.h>
 #include <cerrno>
 
+#ifdef NDEBUG
+# error This program depends on assert() so makes no sense if NDEBUG is defined
+#endif
+
 int main(int argc, char *argv[])
 {
     { std::ofstream file("out"); file << "contents"; }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk