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

#
# src/test/pmem_is_pmem_posix/TEST5 -- unit test for pmem_is_pmem
#

. ../unittest/unittest.sh

require_test_type medium
set_test_labels fault_injection
require_fs_type none
require_dax_devices 1

setup

# test adding/removing ranges to/from map tracking list

expect_normal_exit ./pmem_is_pmem_posix$EXESUFFIX\
	a 0x000000030000 0x20000 DEV_DAX ${DEVICE_DAX_PATH[0]}\
	s 0x000000040000 0x20000\
	r 0x000000040000 0x20000\

check

pass
