|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r76492 - sandbox/closure/libs/scope_exit/test
From: lorcaminiti_at_[hidden]
Date: 2012-01-14 11:51:53
Author: lcaminiti
Date: 2012-01-14 11:51:51 EST (Sat, 14 Jan 2012)
New Revision: 76492
URL: http://svn.boost.org/trac/boost/changeset/76492
Log:
Renaming.
Text files modified:
sandbox/closure/libs/scope_exit/test/Jamfile.v2 | 18 +++++++++---------
sandbox/closure/libs/scope_exit/test/world.cpp | 12 +++++-------
sandbox/closure/libs/scope_exit/test/world_checkpoint.cpp | 6 +++---
sandbox/closure/libs/scope_exit/test/world_checkpoint_all.cpp | 6 +++---
sandbox/closure/libs/scope_exit/test/world_checkpoint_all_seq.cpp | 6 +++---
sandbox/closure/libs/scope_exit/test/world_checkpoint_seq.cpp | 6 +++---
sandbox/closure/libs/scope_exit/test/world_lambda.cpp | 6 +++---
sandbox/closure/libs/scope_exit/test/world_seq.cpp | 12 +++++-------
sandbox/closure/libs/scope_exit/test/world_this.cpp | 8 ++++----
sandbox/closure/libs/scope_exit/test/world_this_seq.cpp | 8 ++++----
sandbox/closure/libs/scope_exit/test/world_tpl.cpp | 6 +++---
sandbox/closure/libs/scope_exit/test/world_tpl_seq.cpp | 6 +++---
sandbox/closure/libs/scope_exit/test/world_void.cpp | 12 +++++-------
13 files changed, 53 insertions(+), 59 deletions(-)
Modified: sandbox/closure/libs/scope_exit/test/Jamfile.v2
==============================================================================
--- sandbox/closure/libs/scope_exit/test/Jamfile.v2 (original)
+++ sandbox/closure/libs/scope_exit/test/Jamfile.v2 2012-01-14 11:51:51 EST (Sat, 14 Jan 2012)
@@ -11,19 +11,19 @@
[ run world.cpp ]
[ run world_seq.cpp ]
- [ run world_commit.cpp ]
- [ run world_commit_seq.cpp ]
+ [ run world_void.cpp ]
- [ run world_commit_this.cpp ]
- [ run world_commit_this_seq.cpp ]
+ [ run world_this.cpp ]
+ [ run world_this_seq.cpp ]
- [ run world_commit_void.cpp ]
+ [ run world_tpl.cpp ]
+ [ run world_tpl_seq.cpp ]
- [ run world_all.cpp ]
- [ run world_all_seq.cpp ]
+ [ run world_checkpoint.cpp ]
+ [ run world_checkpoint_seq.cpp ]
- [ run world_commit_tpl.cpp ]
- [ run world_commit_tpl_seq.cpp ]
+ [ run world_checkpoint_all.cpp ]
+ [ run world_checkpoint_all_seq.cpp ]
[ run world_commit_lambda.cpp ]
;
Modified: sandbox/closure/libs/scope_exit/test/world.cpp
==============================================================================
--- sandbox/closure/libs/scope_exit/test/world.cpp (original)
+++ sandbox/closure/libs/scope_exit/test/world.cpp 2012-01-14 11:51:51 EST (Sat, 14 Jan 2012)
@@ -1,7 +1,7 @@
#include <boost/scope_exit.hpp>
-//#define BOOST_TEST_MODULE TestWorldCommit
-//#include <boost/test/unit_test.hpp>
+#define BOOST_TEST_MODULE TestWorld
+#include <boost/test/unit_test.hpp>
#include <vector>
struct person {};
@@ -11,7 +11,7 @@
std::vector<person> persons_;
};
-//[test_world_commit
+//[test_world
void world::add_person(person const& a_person) {
bool commit = false;
@@ -27,12 +27,10 @@
}
//]
-//BOOST_AUTO_TEST_CASE( test_world_commit ) {
-int main() {
+BOOST_AUTO_TEST_CASE( test_world ) {
world w;
person p;
w.add_person(p);
-// BOOST_CHECK( w.persons_.size() == 1 );
- return 0;
+ BOOST_CHECK( w.persons_.size() == 1 );
}
Modified: sandbox/closure/libs/scope_exit/test/world_checkpoint.cpp
==============================================================================
--- sandbox/closure/libs/scope_exit/test/world_checkpoint.cpp (original)
+++ sandbox/closure/libs/scope_exit/test/world_checkpoint.cpp 2012-01-14 11:51:51 EST (Sat, 14 Jan 2012)
@@ -4,7 +4,7 @@
#include <boost/typeof/typeof.hpp>
#include <boost/typeof/std/vector.hpp>
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
-#define BOOST_TEST_MODULE TestWorld
+#define BOOST_TEST_MODULE TestWorldCheckpoint
#include <boost/test/unit_test.hpp>
#include <vector>
#include <iostream>
@@ -50,7 +50,7 @@
BOOST_TYPEOF_REGISTER_TYPE(world)
-//[test_world
+//[test_world_checkpoint
void world::add_person(person const& a_person) {
persons_.push_back(a_person);
@@ -81,7 +81,7 @@
}
//]
-BOOST_AUTO_TEST_CASE( test_world ) {
+BOOST_AUTO_TEST_CASE( test_world_checkpoint ) {
person adam, eva;
std::ostringstream oss;
oss << adam;
Modified: sandbox/closure/libs/scope_exit/test/world_checkpoint_all.cpp
==============================================================================
--- sandbox/closure/libs/scope_exit/test/world_checkpoint_all.cpp (original)
+++ sandbox/closure/libs/scope_exit/test/world_checkpoint_all.cpp 2012-01-14 11:51:51 EST (Sat, 14 Jan 2012)
@@ -8,7 +8,7 @@
#include <boost/typeof/typeof.hpp>
#include <boost/typeof/std/vector.hpp>
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
-#define BOOST_TEST_MODULE TestWorldAll
+#define BOOST_TEST_MODULE TestWorldCheckpointAll
#include <boost/test/unit_test.hpp>
#include <vector>
#include <iostream>
@@ -54,7 +54,7 @@
BOOST_TYPEOF_REGISTER_TYPE(world)
-//[test_world_all
+//[test_world_checkpoint_all
void world::add_person(person const& a_person) {
persons_.push_back(a_person);
@@ -85,7 +85,7 @@
}
//]
-BOOST_AUTO_TEST_CASE( test_world_all ) {
+BOOST_AUTO_TEST_CASE( test_world_checkpoint_all ) {
person adam, eva;
std::ostringstream oss;
oss << adam;
Modified: sandbox/closure/libs/scope_exit/test/world_checkpoint_all_seq.cpp
==============================================================================
--- sandbox/closure/libs/scope_exit/test/world_checkpoint_all_seq.cpp (original)
+++ sandbox/closure/libs/scope_exit/test/world_checkpoint_all_seq.cpp 2012-01-14 11:51:51 EST (Sat, 14 Jan 2012)
@@ -8,7 +8,7 @@
#include <boost/typeof/typeof.hpp>
#include <boost/typeof/std/vector.hpp>
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
-#define BOOST_TEST_MODULE TestWorldAllSeq
+#define BOOST_TEST_MODULE TestWorldCheckpointAllSeq
#include <boost/test/unit_test.hpp>
#include <vector>
#include <iostream>
@@ -54,7 +54,7 @@
BOOST_TYPEOF_REGISTER_TYPE(world)
-//[test_world_all_seq
+//[test_world_checkpoint_all_seq
void world::add_person(person const& a_person) {
persons_.push_back(a_person);
@@ -85,7 +85,7 @@
}
//]
-BOOST_AUTO_TEST_CASE( test_world_all_seq ) {
+BOOST_AUTO_TEST_CASE( test_world_checkpoint_all_seq ) {
person adam, eva;
std::ostringstream oss;
oss << adam;
Modified: sandbox/closure/libs/scope_exit/test/world_checkpoint_seq.cpp
==============================================================================
--- sandbox/closure/libs/scope_exit/test/world_checkpoint_seq.cpp (original)
+++ sandbox/closure/libs/scope_exit/test/world_checkpoint_seq.cpp 2012-01-14 11:51:51 EST (Sat, 14 Jan 2012)
@@ -4,7 +4,7 @@
#include <boost/typeof/typeof.hpp>
#include <boost/typeof/std/vector.hpp>
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
-#define BOOST_TEST_MODULE TestWorldSeq
+#define BOOST_TEST_MODULE TestWorldCheckpointSeq
#include <boost/test/unit_test.hpp>
#include <vector>
#include <iostream>
@@ -50,7 +50,7 @@
BOOST_TYPEOF_REGISTER_TYPE(world)
-//[test_world_seq
+//[test_world_checkpoint_seq
void world::add_person(person const& a_person) {
persons_.push_back(a_person);
@@ -81,7 +81,7 @@
}
//]
-BOOST_AUTO_TEST_CASE( test_world_seq ) {
+BOOST_AUTO_TEST_CASE( test_world_checkpoint_seq ) {
person adam, eva;
std::ostringstream oss;
oss << adam;
Modified: sandbox/closure/libs/scope_exit/test/world_lambda.cpp
==============================================================================
--- sandbox/closure/libs/scope_exit/test/world_lambda.cpp (original)
+++ sandbox/closure/libs/scope_exit/test/world_lambda.cpp 2012-01-14 11:51:51 EST (Sat, 14 Jan 2012)
@@ -3,7 +3,7 @@
#ifndef BOOST_NO_LAMBDAS
-#define BOOST_TEST_MODULE TestWorldCommitLambda
+#define BOOST_TEST_MODULE TestWorldLambda
#include <boost/test/unit_test.hpp>
#include <vector>
@@ -14,7 +14,7 @@
std::vector<person> persons_;
};
-//[test_world_commit_lambda
+//[test_world_lambda
#include <functional>
struct scope_exit {
@@ -38,7 +38,7 @@
}
//]
-BOOST_AUTO_TEST_CASE( test_world_commit_lambda ) {
+BOOST_AUTO_TEST_CASE( test_world_lambda ) {
world w;
person p;
w.add_person(p);
Modified: sandbox/closure/libs/scope_exit/test/world_seq.cpp
==============================================================================
--- sandbox/closure/libs/scope_exit/test/world_seq.cpp (original)
+++ sandbox/closure/libs/scope_exit/test/world_seq.cpp 2012-01-14 11:51:51 EST (Sat, 14 Jan 2012)
@@ -1,7 +1,7 @@
#include <boost/scope_exit.hpp>
-//#define BOOST_TEST_MODULE TestWorldCommitSeq
-//#include <boost/test/unit_test.hpp>
+#define BOOST_TEST_MODULE TestWorldSeq
+#include <boost/test/unit_test.hpp>
#include <vector>
struct person {};
@@ -11,7 +11,7 @@
std::vector<person> persons_;
};
-//[test_world_commit_seq
+//[test_world_seq
void world::add_person(person const& a_person) {
bool commit = false;
@@ -26,12 +26,10 @@
}
//]
-//BOOST_AUTO_TEST_CASE( test_world_commit_seq ) {
-int main() {
+BOOST_AUTO_TEST_CASE( test_world_seq ) {
world w;
person p;
w.add_person(p);
-// BOOST_CHECK( w.persons_.size() == 1 );
- return 0;
+ BOOST_CHECK( w.persons_.size() == 1 );
}
Modified: sandbox/closure/libs/scope_exit/test/world_this.cpp
==============================================================================
--- sandbox/closure/libs/scope_exit/test/world_this.cpp (original)
+++ sandbox/closure/libs/scope_exit/test/world_this.cpp 2012-01-14 11:51:51 EST (Sat, 14 Jan 2012)
@@ -1,7 +1,7 @@
#include <boost/scope_exit.hpp>
#include <boost/config.hpp>
-#define BOOST_TEST_MODULE TestWorldCommitThis
+#define BOOST_TEST_MODULE TestWorldThis
#include <boost/test/unit_test.hpp>
#include <vector>
@@ -17,13 +17,13 @@
persons_.push_back(a_person);
#ifdef BOOST_NO_LAMBDAS
- //[test_world_commit_this_
+ //[test_world_this_
BOOST_SCOPE_EXIT(&commit, this_) { // Capture object `this_`.
if(!commit) this_->persons_.pop_back();
} BOOST_SCOPE_EXIT_END
//]
#else
- //[test_world_commit_this
+ //[test_world_this
BOOST_SCOPE_EXIT(&commit, this) { // Use `this` (C++11).
if(!commit) this->persons_.pop_back();
}; // Use `;` instead of `BOOST_SCOPE_EXIT_END` (C++11).
@@ -35,7 +35,7 @@
commit = true;
}
-BOOST_AUTO_TEST_CASE( test_world_commit_this ) {
+BOOST_AUTO_TEST_CASE( test_world_this ) {
world w;
person p;
w.add_person(p);
Modified: sandbox/closure/libs/scope_exit/test/world_this_seq.cpp
==============================================================================
--- sandbox/closure/libs/scope_exit/test/world_this_seq.cpp (original)
+++ sandbox/closure/libs/scope_exit/test/world_this_seq.cpp 2012-01-14 11:51:51 EST (Sat, 14 Jan 2012)
@@ -1,7 +1,7 @@
#include <boost/scope_exit.hpp>
#include <boost/config.hpp>
-#define BOOST_TEST_MODULE TestWorldCommitThis
+#define BOOST_TEST_MODULE TestWorldThisSeq
#include <boost/test/unit_test.hpp>
#include <vector>
@@ -17,13 +17,13 @@
persons_.push_back(a_person);
#ifdef BOOST_NO_LAMBDAS
- //[test_world_commit_this_
+ //[test_world_this_seq_
BOOST_SCOPE_EXIT( (&commit) (this_) ) { // Capture object `this_`.
if(!commit) this_->persons_.pop_back();
} BOOST_SCOPE_EXIT_END
//]
#else
- //[test_world_commit_this
+ //[test_world_this_seq
BOOST_SCOPE_EXIT( (&commit) (this) ) { // Use `this` (C++11).
if(!commit) this->persons_.pop_back();
}; // Use `;` instead of `BOOST_SCOPE_EXIT_END` (C++11).
@@ -35,7 +35,7 @@
commit = true;
}
-BOOST_AUTO_TEST_CASE( test_world_commit_this ) {
+BOOST_AUTO_TEST_CASE( test_world_this_seq ) {
world w;
person p;
w.add_person(p);
Modified: sandbox/closure/libs/scope_exit/test/world_tpl.cpp
==============================================================================
--- sandbox/closure/libs/scope_exit/test/world_tpl.cpp (original)
+++ sandbox/closure/libs/scope_exit/test/world_tpl.cpp 2012-01-14 11:51:51 EST (Sat, 14 Jan 2012)
@@ -1,6 +1,6 @@
#include <boost/scope_exit.hpp>
-#define BOOST_TEST_MODULE TestWorldCommitTpl
+#define BOOST_TEST_MODULE TestWorldTpl
#include <boost/test/unit_test.hpp>
struct person {};
@@ -11,7 +11,7 @@
std::vector<Person> persons_;
};
-//[test_world_commit_tpl
+//[test_world_tpl
template<typename Person>
void world<Person>::add_person(Person const& a_person) {
bool commit = false;
@@ -27,7 +27,7 @@
}
//]
-BOOST_AUTO_TEST_CASE( test_world_commit_tpl ) {
+BOOST_AUTO_TEST_CASE( test_world_tpl ) {
world<person> w;
person p;
w.add_person(p);
Modified: sandbox/closure/libs/scope_exit/test/world_tpl_seq.cpp
==============================================================================
--- sandbox/closure/libs/scope_exit/test/world_tpl_seq.cpp (original)
+++ sandbox/closure/libs/scope_exit/test/world_tpl_seq.cpp 2012-01-14 11:51:51 EST (Sat, 14 Jan 2012)
@@ -1,6 +1,6 @@
#include <boost/scope_exit.hpp>
-#define BOOST_TEST_MODULE TestWorldCommitTplSeq
+#define BOOST_TEST_MODULE TestWorldTplSeq
#include <boost/test/unit_test.hpp>
struct person {};
@@ -11,7 +11,7 @@
std::vector<Person> persons_;
};
-//[test_world_commit_tpl_seq
+//[test_world_tpl_seq
template<typename Person>
void world<Person>::add_person(Person const& a_person) {
bool commit = false;
@@ -27,7 +27,7 @@
}
//]
-BOOST_AUTO_TEST_CASE( test_world_commit_tpl_seq ) {
+BOOST_AUTO_TEST_CASE( test_world_tpl_seq ) {
world<person> w;
person p;
w.add_person(p);
Modified: sandbox/closure/libs/scope_exit/test/world_void.cpp
==============================================================================
--- sandbox/closure/libs/scope_exit/test/world_void.cpp (original)
+++ sandbox/closure/libs/scope_exit/test/world_void.cpp 2012-01-14 11:51:51 EST (Sat, 14 Jan 2012)
@@ -1,12 +1,12 @@
#include <boost/scope_exit.hpp>
-//#define BOOST_TEST_MODULE TestWorldCommitVoid
-//#include <boost/test/unit_test.hpp>
+#define BOOST_TEST_MODULE TestWorldVoid
+#include <boost/test/unit_test.hpp>
#include <vector>
struct person {};
-//[test_world_commit_void
+//[test_world_void
struct world_t {
std::vector<person> persons;
bool commit;
@@ -26,11 +26,9 @@
}
//]
-//BOOST_AUTO_TEST_CASE( test_world_commit_void ) {
-int main() {
+BOOST_AUTO_TEST_CASE( test_world_void ) {
person p;
add_person(p);
-// BOOST_CHECK( world.persons.size() == 1 );
- return 0;
+ BOOST_CHECK( world.persons.size() == 1 );
}
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