diff --git a/include/boost/test/impl/test_tree.ipp b/include/boost/test/impl/test_tree.ipp index 3c21c531..5aad9574 100644 --- a/include/boost/test/impl/test_tree.ipp +++ b/include/boost/test/impl/test_tree.ipp @@ -258,7 +258,7 @@ void test_suite::add( test_unit_generator const& gen, int timeout ) { test_unit* tu; - while(tu = gen.next()) + while((tu = gen.next()) != 0) add( tu, 0, timeout ); } @@ -268,7 +268,7 @@ void test_suite::add( test_unit_generator const& gen, decorator::collector& decorators ) { test_unit* tu; - while(tu = gen.next()) { + while((tu = gen.next()) != 0) { decorators.store_in( *tu ); add( tu, 0 ); }