#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2018-2019, Intel Corporation

#
# src/test/obj_extend/TEST4 -- unit test for extending the pool
# negative scenario - mixed directories and files
# (pmem/issues#820)
#

. ../unittest/unittest.sh

require_test_type medium
require_fs_type any

setup

RESVSIZE=10M

# prepare pool sets (master: dir; replica: file)
create_poolset $DIR/testset1\
	$RESVSIZE:$DIR/testdir11:d\
	R\
	$RESVSIZE:$DIR/testfile21\
	O SINGLEHDR

expect_normal_exit ./obj_extend$EXESUFFIX $DIR/testset1

check

pass
