DOH. Fixing b0rken test case. Cut-n-paste is bad, mmmmkay? Though to be fair, the fix was cut-and-pasted.
authorKrista Bennett <krista@pep-project.org>
Fri, 02 Jun 2017 17:47:21 +0200
changeset 1817d206064589cf
parent 1813 0dbbba72dfbb
child 1818 48785d8fd123
DOH. Fixing b0rken test case. Cut-n-paste is bad, mmmmkay? Though to be fair, the fix was cut-and-pasted.
test/external_revoke_test.cc
     1.1 --- a/test/external_revoke_test.cc	Thu Jun 01 19:57:30 2017 +0200
     1.2 +++ b/test/external_revoke_test.cc	Fri Jun 02 17:47:21 2017 +0200
     1.3 @@ -27,10 +27,18 @@
     1.4  
     1.5  #ifndef NETPGP
     1.6      char* fprs[2];
     1.7 -    
     1.8 +
     1.9 +    const string alice_pub_key = slurp("test_keys/pub/pep-test-alice-0x6FF00E97_pub.asc");
    1.10 +    const string alice_priv_key = slurp("test_keys/priv/pep-test-alice-0x6FF00E97_priv.asc");
    1.11 +
    1.12 +    PEP_STATUS statuspub = import_key(session, alice_pub_key.c_str(), alice_pub_key.length(), NULL);
    1.13 +    PEP_STATUS statuspriv = import_key(session, alice_priv_key.c_str(), alice_priv_key.length(), NULL);
    1.14 +    assert(statuspub == PEP_STATUS_OK);
    1.15 +    assert(statuspriv == PEP_STATUS_OK);
    1.16 +
    1.17      // Create sender ID
    1.18      
    1.19 -    pEp_identity * me = new_identity("pep.test.apple@pep-project.org", NULL, PEP_OWN_USERID, "Alice Cooper");
    1.20 +    pEp_identity * me = new_identity("pep.test.alice@pep-project.org", NULL, PEP_OWN_USERID, "Alice Cooper");
    1.21      status = update_identity(session, me);
    1.22      status = trust_personal_key(session, me);
    1.23      status = update_identity(session, me);