Browse Source

ENGINE-958: test suite change: redefine ASSERT_OK

ENGINE-958
Luca Saiu 1 month ago
parent
commit
2e934f3706
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      test/src/TestUtilities.h

+ 9
- 1
test/src/TestUtilities.h View File

@ -11,6 +11,7 @@
#include "pEpEngine.h"
#include "message_api.h"
#include "mime.h"
#include "status_to_string.h"
#include <gtest/gtest.h>
@ -37,7 +38,14 @@ char* get_new_uuid();
*/
#ifndef ASSERT_OK
#define ASSERT_OK ASSERT_EQ(status, PEP_STATUS_OK)
#define ASSERT_OK \
do { \
if (status != PEP_STATUS_OK) \
std::cout << "status is " << status << " (" \
<< pEp_status_to_string(status) << ")" \
<< std::endl; \
ASSERT_EQ(status, PEP_STATUS_OK); \
} while (false)
#endif
#ifndef ASSERT_NOTNULL


Loading…
Cancel
Save