From d40633d0f1cfc9b3ca25701cd221694668270080 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Wed, 12 Aug 2020 19:52:57 +0200 Subject: [PATCH] apply this to the tests --- test/framework.cc | 2 +- test/test_adapter.cc | 4 ++-- test/test_adapter_cxx.cc | 4 ++-- test/test_message_cache.cc | 4 ++-- test/test_passphrase_cache.cc | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/framework.cc b/test/framework.cc index 52f0191..ea8f672 100644 --- a/test/framework.cc +++ b/test/framework.cc @@ -22,7 +22,7 @@ namespace pEp { if (a.size() > 1) { if (a[1] == "--help") { - cout << "usage: " << a[0] << " [--dir TESTDIR]" << endl; + cout << "usage: " << a[0] << " [--dir HOME]" << endl; exit(0); } else if (a[1] == "--dir" && a.size() == 3) { diff --git a/test/test_adapter.cc b/test/test_adapter.cc index a0c90f2..5629f86 100644 --- a/test/test_adapter.cc +++ b/test/test_adapter.cc @@ -24,9 +24,9 @@ PEP_STATUS notifyHandshake(pEp_identity *me, pEp_identity *partner, sync_handsha return PEP_STATUS_OK; } -int main() +int main(int argc, char **argv) { - pEp::Test::setup(); + pEp::Test::setup(argc, argv); // Create new identity pEpLog("updating or creating identity for me"); diff --git a/test/test_adapter_cxx.cc b/test/test_adapter_cxx.cc index 02a5c22..7dcdc27 100644 --- a/test/test_adapter_cxx.cc +++ b/test/test_adapter_cxx.cc @@ -31,8 +31,8 @@ public: } } o; -int main() { - pEp::Test::setup(); +int main(int argc, char **argv) { + pEp::Test::setup(argc, argv); // Create new identity pEpLog("updating or creating identity for me"); diff --git a/test/test_message_cache.cc b/test/test_message_cache.cc index f5592c1..b3d493f 100644 --- a/test/test_message_cache.cc +++ b/test/test_message_cache.cc @@ -8,9 +8,9 @@ using namespace std; using namespace pEp; -int main() +int main(int argc, char **argv) { - Test::setup(); + Test::setup(argc, argv); pEp_identity *alice = ::new_identity("alice@mail.com", nullptr, PEP_OWN_USERID, "Alice"); ::myself(pEp::Adapter::session(), alice); diff --git a/test/test_passphrase_cache.cc b/test/test_passphrase_cache.cc index 96ad354..a57160d 100644 --- a/test/test_passphrase_cache.cc +++ b/test/test_passphrase_cache.cc @@ -21,9 +21,9 @@ extern "C" { } }; -int main() +int main(int argc, char **argv) { - pEp::Test::setup(); + pEp::Test::setup(argc, argv); const char *str = "23"; char *bytes = NULL;