| 1 |
#!/usr/bin/env bash |
| 2 |
# SPDX-License-Identifier: BSD-3-Clause |
| 3 |
# Copyright 2019, Intel Corporation |
| 4 |
|
| 5 |
# |
| 6 |
# src/test/obj_recovery/TEST9 -- unit test for pool recovery |
| 7 |
# |
| 8 |
|
| 9 |
. ../unittest/unittest.sh |
| 10 |
|
| 11 |
require_test_type medium |
| 12 |
require_no_asan |
| 13 |
|
| 14 |
setup |
| 15 |
|
| 16 |
# exits in the middle of transaction, so pool cannot be closed |
| 17 |
export MEMCHECK_DONT_CHECK_LEAKS=1 |
| 18 |
|
| 19 |
create_holey_file 16M $DIR/testfile |
| 20 |
|
| 21 |
expect_normal_exit ./obj_recovery$EXESUFFIX $DIR/testfile n c l |
| 22 |
expect_normal_exit ./obj_recovery$EXESUFFIX $DIR/testfile n o l |
| 23 |
|
| 24 |
check |
| 25 |
|
| 26 |
pass |