test/src/engine_tests/MessageApiTests.cc
branchENGINE-448
changeset 3254 6e7f6bc9460a
parent 2928 6d8e51098e7a
child 3276 c0b3430f1f1d
     1.1 --- a/test/src/engine_tests/MessageApiTests.cc	Mon Jan 28 14:04:12 2019 +0100
     1.2 +++ b/test/src/engine_tests/MessageApiTests.cc	Tue Jan 29 19:19:30 2019 +0100
     1.3 @@ -32,11 +32,11 @@
     1.4      const string bob_pub_key = slurp("test_keys/pub/pep-test-bob-0xC9C2EE39_pub.asc");
     1.5  
     1.6      PEP_STATUS status0 = import_key(session, alice_pub_key.c_str(), alice_pub_key.size(), NULL);
     1.7 -    TEST_ASSERT_MSG((status0 == PEP_STATUS_OK), "status0 == PEP_STATUS_OK");
     1.8 +    TEST_ASSERT_MSG((status0 == PEP_KEY_IMPORTED), "status0 == PEP_STATUS_OK");
     1.9      status0 = import_key(session, alice_priv_key.c_str(), alice_priv_key.size(), NULL);
    1.10 -    TEST_ASSERT_MSG((status0 == PEP_STATUS_OK), "status0 == PEP_STATUS_OK");
    1.11 +    TEST_ASSERT_MSG((status0 == PEP_KEY_IMPORTED), "status0 == PEP_STATUS_OK");
    1.12      status0 = import_key(session, bob_pub_key.c_str(), bob_pub_key.size(), NULL);
    1.13 -    TEST_ASSERT_MSG((status0 == PEP_STATUS_OK), "status0 == PEP_STATUS_OK");
    1.14 +    TEST_ASSERT_MSG((status0 == PEP_KEY_IMPORTED), "status0 == PEP_STATUS_OK");
    1.15      // message_api test code
    1.16  
    1.17      cout << "creating message…\n";
    1.18 @@ -97,7 +97,7 @@
    1.19      
    1.20      flags = 0;
    1.21      PEP_STATUS status4 = decrypt_message(session, enc_msg2, &msg4, &keylist4, &rating, &flags);
    1.22 -    TEST_ASSERT_MSG((status4 == PEP_STATUS_OK), "status4 == PEP_STATUS_OK");
    1.23 +    TEST_ASSERT_MSG((status4 == PEP_STATUS_OK), tl_status_string(status4));
    1.24      TEST_ASSERT_MSG((msg4), "msg4");
    1.25      TEST_ASSERT_MSG((keylist4), "keylist4");
    1.26      TEST_ASSERT_MSG((rating), "rating");