tst: fscrash: WIP

This commit is contained in:
Bill Zissimopoulos 2016-11-03 22:31:59 -07:00
parent f54ce6a65d
commit aae6a15e5a
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ set TARGET=\\%TARGET_MACHINE%%TARGET_ACCOUNT%
cd %~dp0..
mkdir %TARGET% 2>nul
for %%f in (winfsp-%SUFFIX%.sys winfsp-%SUFFIX%.dll winfsp-tests-%SUFFIX%.exe memfs-%SUFFIX%.exe) do (
for %%f in (winfsp-%SUFFIX%.sys winfsp-%SUFFIX%.dll winfsp-tests-%SUFFIX%.exe fscrash-%SUFFIX%.exe memfs-%SUFFIX%.exe) do (
copy build\VStudio\build\%CONFIG%\%%f %TARGET% >nul
)
echo sc create WinFsp type=filesys binPath=%%~dp0%DRIVER% >%TARGET%sc-create.bat

View File

@ -235,7 +235,7 @@ int wmain(int argc, wchar_t **argv)
else
wsprintfW(Prefix, L"\\memfs\\share");
for (ULONG Iterations = OptIterations; -1 == Iterations || 0 != Iterations; Iterations--)
for (ULONG Iterations = 0; -1 == OptIterations || OptIterations != Iterations; Iterations++)
{
Test(Prefix);
FspCrash(MemfsFileSystem(Memfs)); /* after one time through, go ahead and crash! */