ENGINE-474: better status msg in Crashdump Tests ENGINE-474
authorKrista Bennett <krista@pep-project.org>
Mon, 17 Dec 2018 09:56:27 +0100
branchENGINE-474
changeset 3193b15d10a898cd
parent 3186 27e08d7f5e07
ENGINE-474: better status msg in Crashdump Tests
test/src/engine_tests/CrashdumpTests.cc
     1.1 --- a/test/src/engine_tests/CrashdumpTests.cc	Wed Dec 12 15:01:53 2018 +0100
     1.2 +++ b/test/src/engine_tests/CrashdumpTests.cc	Mon Dec 17 09:56:27 2018 +0100
     1.3 @@ -8,6 +8,7 @@
     1.4  
     1.5  #include "EngineTestSessionSuite.h"
     1.6  #include "CrashdumpTests.h"
     1.7 +#include "test_util.h"
     1.8  
     1.9  using namespace std;
    1.10  
    1.11 @@ -20,7 +21,8 @@
    1.12  void CrashdumpTests::check_crashdump() {
    1.13      // MODULE test code
    1.14      char *text;
    1.15 -    PEP_STATUS status2 = get_crashdump_log(session, 0, &text);
    1.16 -    TEST_ASSERT_MSG((status2 == PEP_STATUS_OK), "status2 == PEP_STATUS_OK");
    1.17 -    cout << text;
    1.18 +    PEP_STATUS status = get_crashdump_log(session, 0, &text);
    1.19 +    TEST_ASSERT_MSG((status == PEP_STATUS_OK), tl_status_string(status));
    1.20 +    cout << text << endl;
    1.21 +    free(text);
    1.22  }