Browse Source

apply this to the tests

pull/1/head
Volker Birk 5 years ago
parent
commit
d40633d0f1
  1. 2
      test/framework.cc
  2. 4
      test/test_adapter.cc
  3. 4
      test/test_adapter_cxx.cc
  4. 4
      test/test_message_cache.cc
  5. 4
      test/test_passphrase_cache.cc

2
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) {

4
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");

4
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");

4
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);

4
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;

Loading…
Cancel
Save