Boost logo

Boost-Commit :

From: hartmut.kaiser_at_[hidden]
Date: 2008-04-03 22:00:36


Author: hkaiser
Date: 2008-04-03 22:00:35 EDT (Thu, 03 Apr 2008)
New Revision: 44026
URL: http://svn.boost.org/trac/boost/changeset/44026

Log:
Wave: Added new test to check for regression as reported by ticket #1766.
Added:
   trunk/libs/wave/test/testwave/testfiles/t_2_018.cpp (contents, props changed)
Text files modified:
   trunk/libs/wave/ChangeLog | 3 ++-
   trunk/libs/wave/test/testwave/testfiles/test.cfg | 1 +
   2 files changed, 3 insertions(+), 1 deletions(-)

Modified: trunk/libs/wave/ChangeLog
==============================================================================
--- trunk/libs/wave/ChangeLog (original)
+++ trunk/libs/wave/ChangeLog 2008-04-03 22:00:35 EDT (Thu, 03 Apr 2008)
@@ -39,7 +39,8 @@
 - Fixed ticket #1766: Wrong evaluation of conditional preprocessor directives
   with predefined macros __FILE__, __LINE__ and __INCLUDE_LEVEL__. This bug
   triggered an error in constructs like #ifndef __FILE__. Thanks to Daniel
- Wadehn for reporting and supplying a patch.
+ Wadehn for reporting and supplying a patch. Added corresponding regression
+ test: t_2_018.cpp.
 
 Boost V1.35.0
 - Wave Version 1.3

Added: trunk/libs/wave/test/testwave/testfiles/t_2_018.cpp
==============================================================================
--- (empty file)
+++ trunk/libs/wave/test/testwave/testfiles/t_2_018.cpp 2008-04-03 22:00:35 EDT (Thu, 03 Apr 2008)
@@ -0,0 +1,22 @@
+/*=============================================================================
+ Boost.Wave: A Standard compliant C++ preprocessor library
+ http://www.boost.org/
+
+ Copyright (c) 2001-2008 Hartmut Kaiser. Distributed under the Boost
+ Software License, Version 1.0. (See accompanying file
+ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+=============================================================================*/
+
+// Check if regression reported by ticket #1752 has been fixed
+
+//R #line 17 "t_2_018.cpp"
+//R "__FILE__ is defined"
+#ifndef __FILE__
+"No __FILE__"
+#else
+"__FILE__ is defined"
+#endif
+
+//H 10: t_2_018.cpp(14): #ifndef
+//H 11: t_2_018.cpp(14): #ifndef __FILE__: 1
+//H 10: t_2_018.cpp(18): #endif

Modified: trunk/libs/wave/test/testwave/testfiles/test.cfg
==============================================================================
--- trunk/libs/wave/test/testwave/testfiles/test.cfg (original)
+++ trunk/libs/wave/test/testwave/testfiles/test.cfg 2008-04-03 22:00:35 EDT (Thu, 03 Apr 2008)
@@ -70,6 +70,7 @@
 t_2_015.cpp
 t_2_016.cpp
 t_2_017.cpp
+t_2_018.cpp
 
 #
 # t_3: Predefined macros


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