change TEST_ASSERT to assert in setup make-cleanup
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Tue, 02 Apr 2019 09:55:48 +0200
branchmake-cleanup
changeset 3429dd27a08888aa
parent 3428 ca6dc81d3f7f
child 3430 5eda673f966c
change TEST_ASSERT to assert in setup
test/src/engine_tests/SyncTests.cc
     1.1 --- a/test/src/engine_tests/SyncTests.cc	Mon Apr 01 22:29:08 2019 +0200
     1.2 +++ b/test/src/engine_tests/SyncTests.cc	Tue Apr 02 09:55:48 2019 +0200
     1.3 @@ -3,6 +3,7 @@
     1.4  
     1.5  #include <stdlib.h>
     1.6  #include <string>
     1.7 +#include <assert.h>
     1.8  
     1.9  #include "pEpEngine.h"
    1.10  
    1.11 @@ -137,7 +138,7 @@
    1.12      free_identity(self);
    1.13  
    1.14      status = init(&sync, Sync_Adapter::messageToSend, Sync_Adapter::inject_sync_event);
    1.15 -    TEST_ASSERT(status == PEP_STATUS_OK);
    1.16 +    assert(status == PEP_STATUS_OK);
    1.17  
    1.18      cout << "initialize sync and start first state machine\n";
    1.19      status = register_sync_callbacks(
    1.20 @@ -146,8 +147,8 @@
    1.21              Sync_Adapter::notifyHandshake,
    1.22              Sync_Adapter::retrieve_next_sync_event
    1.23          );
    1.24 -    TEST_ASSERT(status == PEP_STATUS_OK);
    1.25 -    TEST_ASSERT(sync->sync_state.keysync.state == Sole);
    1.26 +    assert(status == PEP_STATUS_OK);
    1.27 +    assert(sync->sync_state.keysync.state == Sole);
    1.28  
    1.29      cout << "creating thread for sync\n";
    1.30      sync_thread = new thread(Sync_Adapter::sync_thread, sync, &adapter);
    1.31 @@ -176,4 +177,3 @@
    1.32      cout << "check_sync(): cry for unknown key\n";
    1.33      signal_Sync_event(sync, Sync_PR_keysync, CannotDecrypt);
    1.34  }
    1.35 -