-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: verify prealloc result to avoid skipping wrong function execution
prealloc might fail in case of pool reopen after transaction abort Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
- Loading branch information
Showing
8 changed files
with
53 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2023, Intel Corporation | ||
|
||
# | ||
# src/test/obj_pmalloc_mt/TEST8 -- multithreaded allocator test | ||
# (long - several iteration) w/ statistics | ||
# | ||
|
||
. ../unittest/unittest.sh | ||
|
||
#require_valgrind 3.10 | ||
require_fs_type pmem | ||
require_test_type short | ||
#configure_valgrind helgrind force-enable | ||
|
||
setup | ||
|
||
rm -f $DIR/testfile8 | ||
|
||
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\ | ||
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile8 | ||
|
||
rm $DIR/testfile8 | ||
|
||
PMEM_IS_PMEM_FORCE=1 expect_abnormal_exit\ | ||
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile8 | ||
|
||
check | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{obj_pmalloc_mt.c:66 realloc_worker} obj_pmalloc_mt/TEST8: Error: assertion failure: ret (0xffffffffffffffff) == 0 (0x0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters