Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests to the latest oatpp 1.4.0 API #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions test/tests.cpp
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ class Test : public oatpp::test::UnitTest {
{}

void onRun() override {
OATPP_LOGD(TAG, "Hello Test");
OATPP_LOGd(TAG, "Hello Test");
// TODO write correct tests
}
};
@@ -23,19 +23,19 @@ void runTests() {

int main() {

oatpp::base::Environment::init();
oatpp::Environment::init();

runTests();

/* Print how much objects were created during app running, and what have left-probably leaked */
/* Disable object counting for release builds using '-D OATPP_DISABLE_ENV_OBJECT_COUNTERS' flag for better performance */
std::cout << "\nEnvironment:\n";
std::cout << "objectsCount = " << oatpp::base::Environment::getObjectsCount() << "\n";
std::cout << "objectsCreated = " << oatpp::base::Environment::getObjectsCreated() << "\n\n";
std::cout << "objectsCount = " << oatpp::Environment::getObjectsCount() << "\n";
std::cout << "objectsCreated = " << oatpp::Environment::getObjectsCreated() << "\n\n";

OATPP_ASSERT(oatpp::base::Environment::getObjectsCount() == 0);
OATPP_ASSERT(oatpp::Environment::getObjectsCount() == 0);

oatpp::base::Environment::destroy();
oatpp::Environment::destroy();

return 0;
}