-
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 <[email protected]>
- Loading branch information
Showing
8 changed files
with
51 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,29 @@ | ||
#!/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_fs_type pmem | ||
require_test_type short | ||
|
||
setup | ||
|
||
TEST_FILE_PATH=$DIR/testfile | ||
|
||
rm -f $TEST_FILE_PATH | ||
|
||
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\ | ||
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $TEST_FILE_PATH | ||
|
||
rm $TEST_FILE_PATH | ||
|
||
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\ | ||
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $TEST_FILE_PATH | ||
|
||
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