From 7e5d39f28ba5a5bc10076c3e1249ee82493ee8d2 Mon Sep 17 00:00:00 2001 From: heck Date: Wed, 9 Mar 2022 14:23:37 +0100 Subject: [PATCH] prototype: just comments and prints --- test/test_nr1.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/test_nr1.cc b/test/test_nr1.cc index 23081b5..828fdab 100644 --- a/test/test_nr1.cc +++ b/test/test_nr1.cc @@ -82,7 +82,7 @@ namespace pEp { } if (_is_initialized) { - throw Exception{ EXSTR("double initialization") }; + throw Exception{ EXSTR("can only bind once") }; } // init _pod_p = pod_p; @@ -195,7 +195,7 @@ namespace pEp { } if (_is_bound) { - throw Exception{ EXSTR("double initialization") }; + throw Exception{ EXSTR("can only be bound once") }; } // init @@ -468,7 +468,7 @@ namespace pEp { } if (_is_bound) { - throw Exception{ EXSTR("double initialization") }; + throw Exception{ EXSTR("can only bind once") }; } // init @@ -536,7 +536,7 @@ namespace pEp { // // alloc/free: // the alloc() and free() functions HAVE to use calloc/malloc NOT 'new', because we are interfacing - // c99 code, that could possible get ownership of the struct and can only free memory that has + // c99 code that could possibly get ownership of the struct and can only free memory that has // been allocated using malloc/calloc. (malloc/free - new/delete are NOT compatible) class TestStruct1 : public PODStruct<::Test_struct1> { public: @@ -582,7 +582,7 @@ int main() std::is_pod<::Test_struct1>::value && !std::is_pointer<::Test_struct1>::value, "not an integral"); - pEp::Utils::readKey(); + // pEp::Utils::readKey(); pEp::Adapter::pEpLog::set_enabled(true); // POD @@ -682,7 +682,7 @@ int main() // Struct if (1) { // create an instance - if (0) { + if (1) { pEp::TestStruct1 pstruct1{ true }; // pEp::TestStruct1 pstruct1(true, 23, TWO, "pEp"); pEpLog(pstruct1.c_int);