# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2018-2019, Intel Corporation

#
# src/test/pmem_has_auto_flush_win/TEST2 -- unit test for
#	pmem_has_auto_flush_win()
#
# case if nfit table exists but platform capabilities
# structure with type 7 not exist
#
[CmdletBinding(PositionalBinding=$false)]
Param(
    [alias("d")]
    $DIR = ""
    )

. ..\unittest\unittest.ps1

require_test_type medium
require_fs_type any

setup

$NFIT_AVAILABLE="y"
$PLATFORM_CAPABILITIES=6
$CAPABILITIES=3

expect_normal_exit $Env:EXE_DIR\pmem_has_auto_flush_win$Env:EXESUFFIX `
	$NFIT_AVAILABLE $PLATFORM_CAPABILITIES $CAPABILITIES

check

pass
