Skip to content

Commit

Permalink
test: don't configure the log function for PMEMOBJ
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Michalski <jan.michalski@intel.com>
  • Loading branch information
janekmi committed Mar 7, 2024
1 parent 5a10cba commit 1c40a43
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/test/unittest/unittest.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,12 @@ ut_log_function(enum core_log_level level, const char *file_name,
#define LOG_SET_PMEMCORE_FUNC
#endif

#ifdef USE_LOG_PMEMOBJ
#define LOG_SET_PMEMOBJ_FUNC \
pmemobj_log_set_function((pmemobj_log_function *)ut_log_function)
#else
#define LOG_SET_PMEMOBJ_FUNC
#endif

/* indicate the start of the test */
#define START(argc, argv, ...)\
do {\
ut_start(__FILE__, __LINE__, __func__, argc, argv,\
__VA_ARGS__);\
LOG_SET_PMEMCORE_FUNC; \
LOG_SET_PMEMOBJ_FUNC; \
} while (0)

/* normal exit from test */
Expand Down

0 comments on commit 1c40a43

Please sign in to comment.