tools: run-tests: fscrash

This commit is contained in:
Bill Zissimopoulos 2016-11-04 00:32:16 -07:00
parent 1a43619c5e
commit 57580e91f5

View File

@ -51,6 +51,8 @@ for %%f in (^
:winfstest-memfs-x64-net ^ :winfstest-memfs-x64-net ^
:winfstest-memfs-x86-disk ^ :winfstest-memfs-x86-disk ^
:winfstest-memfs-x86-net ^ :winfstest-memfs-x86-net ^
:fscrash-x64 ^
:fscrash-x86 ^
) do ( ) do (
echo === Running %%f echo === Running %%f
@ -245,6 +247,38 @@ call "%ProjRoot%\ext\test\winfstest\run-winfstest.bat"
if !ERRORLEVEL! neq 0 goto fail if !ERRORLEVEL! neq 0 goto fail
exit /b 0 exit /b 0
:fscrash-x64
for %%m in (^
000002 000004 000008 000010 ^
000020 000040 000080 000100 ^
000800 001000 002000 004000 ^
008000 080000 100000 200000 ^
) do (
echo fscrash-x64 --terminate --mask=0x%%m --enter
fscrash-x64 --terminate --mask=0x%%m --enter >nul 2>&1
if !ERRORLEVEL! neq -1073741823 goto fail
echo fscrash-x64 --terminate --mask=0x%%m --leave
fscrash-x64 --terminate --mask=0x%%m --leave >nul 2>&1
if !ERRORLEVEL! neq -1073741823 goto fail
)
exit /b 0
:fscrash-x86
for %%m in (^
000002 000004 000008 000010 ^
000020 000040 000080 000100 ^
000800 001000 002000 004000 ^
008000 080000 100000 200000 ^
) do (
echo fscrash-x86 --terminate --mask=0x%%m --enter
fscrash-x86 --terminate --mask=0x%%m --enter >nul 2>&1
if !ERRORLEVEL! neq -1073741823 goto fail
echo fscrash-x86 --terminate --mask=0x%%m --leave
fscrash-x86 --terminate --mask=0x%%m --leave >nul 2>&1
if !ERRORLEVEL! neq -1073741823 goto fail
)
exit /b 0
:leak-test :leak-test
for /F "tokens=1,2 delims=:" %%i in ('verifier /query ^| findstr ^ for /F "tokens=1,2 delims=:" %%i in ('verifier /query ^| findstr ^
/c:"Current Pool Allocations:" ^ /c:"Current Pool Allocations:" ^