Commit 46233116 authored by Dominik Charousset's avatar Dominik Charousset

changed displayed unit test names: {test__=>test_}

parent 85ecb9b3
......@@ -29,7 +29,7 @@ void foo() {
int main() {
bool matched_pattern[3] = { false, false, false };
CPPA_TEST(test__atom);
CPPA_TEST(test_atom);
// check if there are leading bits that distinguish "zzz" and "000 "
CPPA_CHECK_NOT_EQUAL(atom("zzz"), atom("000 "));
// check if there are leading bits that distinguish "abc" and " abc"
......
......@@ -12,7 +12,7 @@ using std::equal;
using cppa::util::fixed_vector;
int main() {
CPPA_TEST(test__fixed_vector);
CPPA_TEST(test_fixed_vector);
int arr1[] {1, 2, 3, 4};
fixed_vector<int,4> vec1 {1, 2, 3, 4};
fixed_vector<int,5> vec2 {4, 3, 2, 1};
......
......@@ -60,7 +60,7 @@ inline bool operator==(int lhs, const iint& rhs) {
typedef cppa::intrusive::single_reader_queue<iint> iint_queue;
int main() {
CPPA_TEST(test__intrusive_containers);
CPPA_TEST(test_intrusive_containers);
cppa::intrusive::single_reader_queue<iint> q;
q.enqueue(new iint(1));
......
......@@ -45,7 +45,7 @@ int main() {
// this test dosn't test thread-safety of intrusive_ptr
// however, it is thread safe since it uses atomic operations only
CPPA_TEST(test__intrusive_ptr);
CPPA_TEST(test_intrusive_ptr);
{
auto p = make_counted<class0>();
CPPA_CHECK_EQUAL(class0_instances, 1);
......
......@@ -37,7 +37,7 @@ void testee(int current_value, int final_result) {
}
int main() {
CPPA_TEST(test__local_group);
CPPA_TEST(test_local_group);
auto foo_group = group::get("local", "foo");
actor_ptr master = spawn_in_group(foo_group, testee, 0, 10);
for (int i = 0; i < 5; ++i) {
......
......@@ -23,7 +23,7 @@ bool is_even(int i) { return i % 2 == 0; }
*/
int main() {
CPPA_TEST(test__match);
CPPA_TEST(test_match);
using namespace std::placeholders;
using namespace cppa::placeholders;
......
......@@ -23,7 +23,7 @@ using namespace cppa::util;
int main() {
CPPA_TEST(test__metaprogramming);
CPPA_TEST(test_metaprogramming);
CPPA_PRINT("test type_list");
......
......@@ -27,7 +27,7 @@ inline std::ostream& operator<<(std::ostream& o, const primitive_variant& pv) {
using namespace cppa;
int main() {
CPPA_TEST(test__primitive_variant);
CPPA_TEST(test_primitive_variant);
std::uint32_t forty_two = 42;
primitive_variant v1(forty_two);
......
......@@ -138,7 +138,7 @@ void spawn5_client() {
}
int client_part(const vector<string_pair>& args) {
CPPA_TEST(test__remote_actor_client_part);
CPPA_TEST(test_remote_actor_client_part);
auto i = find_if(args.begin(), args.end(),
[](const string_pair& p) { return p.first == "port"; });
if (i == args.end()) {
......@@ -254,7 +254,7 @@ int main(int argc, char** argv) {
return client_part(args);
}
}
CPPA_TEST(test__remote_actor);
CPPA_TEST(test_remote_actor);
//auto ping_actor = spawn(ping, 10);
uint16_t port = 4242;
bool success = false;
......
......@@ -27,7 +27,7 @@ std::string str_hash(const std::string& what) {
// verify ripemd implementation with example hash results from
// http://homes.esat.kuleuven.be/~bosselae/ripemd160.html
int main() {
CPPA_TEST(test__ripemd_160);
CPPA_TEST(test_ripemd_160);
CPPA_CHECK_EQUAL("9c1185a5c5e9fc54612808977ee8f548b2258d31",
str_hash(""));
......
......@@ -144,7 +144,7 @@ struct raw_struct_type_info : util::abstract_uniform_type_info<raw_struct> {
};
int main() {
CPPA_TEST(test__serialization);
CPPA_TEST(test_serialization);
announce(typeid(raw_struct), new raw_struct_type_info);
......
......@@ -283,7 +283,7 @@ struct simple_mirror : sb_actor<simple_mirror> {
};
int main() {
CPPA_TEST(test__spawn);
CPPA_TEST(test_spawn);
CPPA_PRINT("test send()");
send(self, 1, 2, 3, true);
......
......@@ -166,7 +166,7 @@ struct server : event_based_actor {
int main() {
CPPA_TEST(test__sync_send);
CPPA_TEST(test_sync_send);
self->on_sync_failure([] {
CPPA_ERROR("received: " << to_string(self->last_dequeued()));
});
......
......@@ -130,7 +130,7 @@ struct dummy_receiver : event_based_actor {
};
int main() {
CPPA_TEST(test__tuple);
CPPA_TEST(test_tuple);
announce<expensive_copy_struct>(&expensive_copy_struct::value);
......
......@@ -45,7 +45,7 @@ inline bool operator==(const foo& lhs, const foo& rhs) {
using namespace cppa;
int main() {
CPPA_TEST(test__uniform_type);
CPPA_TEST(test_uniform_type);
bool announce1 = announce<foo>(&foo::value);
bool announce2 = announce<foo>(&foo::value);
bool announce3 = announce<foo>(&foo::value);
......
......@@ -36,7 +36,7 @@ struct pseudo_worker {
void coroutine(void* worker) { (*reinterpret_cast<pseudo_worker*>(worker))(); }
int main() {
CPPA_TEST(test__yield_interface);
CPPA_TEST(test_yield_interface);
# ifdef CPPA_DISABLE_CONTEXT_SWITCHING
CPPA_PRINT("WARNING: context switching was explicitly disabled "
"using CPPA_DISABLE_CONTEXT_SWITCHING");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment