diff --git a/src/test/obj_sync/TEST0 b/src/test/obj_sync/TEST0 index afb66e35a1b..e5a3ad5f95a 100755 --- a/src/test/obj_sync/TEST0 +++ b/src/test/obj_sync/TEST0 @@ -3,14 +3,15 @@ # Copyright 2015-2023, Intel Corporation # -# src/test/obj_sync/TEST0 -- unit test for PMEM-resident locks +# src/test/obj_sync/TEST0 -- unit test for PMEM-resident locks without valgrind # -. ../unittest/unittest.sh +# Test cases "m", "r", "c" fail under valgrind. +# This test verifies that the tests run normally +# until these errors are fixed: https://github.com/pmem/pmdk/issues/5646 +# and https://github.com/pmem/pmdk/issues/5727 -# XXX disable the test until https://github.com/pmem/pmdk/issues/5727 -# and https://github.com/pmem/pmdk/issues/5643 are fixed. -DISABLED +. ../unittest/unittest.sh require_test_type medium @@ -19,8 +20,28 @@ require_build_type debug nondebug setup -expect_normal_exit ./obj_sync$EXESUFFIX m 50 5 - +LOG=out${UNITTEST_NUM}.log +LOG_TEMP=out${UNITTEST_NUM}_part.log +ERR=err${UNITTEST_NUM}.log +ERR_TEMP=err${UNITTEST_NUM}_part.log + +rm -f $LOG $LOG_TEMP $ERR $ERR_TEMP + +VALGRIND_DISABLED=y expect_normal_exit ./obj_sync$EXESUFFIX m 50 5 +cat $LOG >> $LOG_TEMP +cat $ERR >> $ERR_TEMP +VALGRIND_DISABLED=y expect_normal_exit ./obj_sync$EXESUFFIX r 50 5 +cat $LOG >> $LOG_TEMP +cat $ERR >> $ERR_TEMP +VALGRIND_DISABLED=y expect_normal_exit ./obj_sync$EXESUFFIX c 50 5 +cat $LOG >> $LOG_TEMP +cat $ERR >> $ERR_TEMP +VALGRIND_DISABLED=y expect_normal_exit ./obj_sync$EXESUFFIX t 50 5 +cat $LOG >> $LOG_TEMP +cat $ERR >> $ERR_TEMP + +mv $LOG_TEMP $LOG +mv $ERR_TEMP $ERR check pass diff --git a/src/test/obj_sync/err0.log.match b/src/test/obj_sync/err0.log.match index 419f4421f20..c43f52ce3b3 100644 --- a/src/test/obj_sync/err0.log.match +++ b/src/test/obj_sync/err0.log.match @@ -1 +1,4 @@ {$(nW)obj_sync.c:$(N) mutex_$(nW)_worker} obj_sync$(nW)TEST0: pmemobj_mutex_lock +{$(nW)obj_sync.c:$(N) rwlock_$(nW)_worker} obj_sync$(nW)TEST0: pmemobj_rwlock_wrlock +{$(nW)obj_sync.c:$(N) cond_$(nW)_worker} obj_sync$(nW)TEST0: pmemobj_cond_signal +{$(nW)obj_sync.c:$(N) timed_$(nW)_worker} obj_sync$(nW)TEST0: pmemobj_mutex_timedlock: Invalid argument diff --git a/src/test/obj_sync/out0.log.match b/src/test/obj_sync/out0.log.match index f53c3800a4a..e2aa068e86e 100644 --- a/src/test/obj_sync/out0.log.match +++ b/src/test/obj_sync/out0.log.match @@ -1,3 +1,12 @@ obj_sync$(nW)TEST0: START: obj_sync $(nW)obj_sync$(nW) $(nW) $(N) $(N) obj_sync$(nW)TEST0: DONE +obj_sync$(nW)TEST0: START: obj_sync + $(nW)obj_sync$(nW) $(nW) $(N) $(N) +obj_sync$(nW)TEST0: DONE +obj_sync$(nW)TEST0: START: obj_sync + $(nW)obj_sync$(nW) $(nW) $(N) $(N) +obj_sync$(nW)TEST0: DONE +obj_sync$(nW)TEST0: START: obj_sync + $(nW)obj_sync$(nW) $(nW) $(N) $(N) +obj_sync$(nW)TEST0: DONE