# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2014-2018, Intel Corporation
#
#
# pmempool_info/TEST15 -- test for info command
#

. ..\unittest\unittest.ps1

require_test_type medium

require_fs_type any

setup

$POOL="$DIR\file.pool"
$LOG="out$Env:UNITTEST_NUM.log"
rm $LOG -Force -ea si

expect_normal_exit $PMEMPOOL create --layout pmempool$Env:SUFFIX obj $POOL
expect_normal_exit $PMEMPOOL info -o -A -a $POOL >> $LOG
expect_normal_exit $PMEMALLOC -r 1 $POOL
echo "" >> $LOG
expect_normal_exit $PMEMPOOL info -o -A -a $POOL >> $LOG

check

pass
