--- parser3/tests/174.html 2008/05/19 10:40:38 1.2 +++ parser3/tests/174.html 2017/12/07 00:55:12 1.4 @@ -14,7 +14,7 @@ $tList[^file:list[$sDir]] $hf[^hashfile::open[$sDir/$sName]] $hf2[^hashfile::open[$sDir/${sName}2]] - +^try-catch{ ^hashfile::open[$sDir/$sName] } # check hashfile files -- it mustn't exist because of delayed opened ^checkFiles[$sDir;$sName] @@ -25,7 +25,8 @@ $hf2[^hashfile::open[$sDir/${sName}2]] ^fill[$hf2] $iSizeBefore(^getFileSize[$sDir;${sName}2]) - +$hf.temp[temp] +^hf.clear[] # add item with key '0' for 2 sec $hf.0[ @@ -39,6 +40,8 @@ $hf.0[ } +^json:string[^hf.hash[]] +
^checkFiles[$sDir;$sName] @@ -108,28 +111,17 @@ $s
# files must exist now ^checkFiles[$sDir;$sName] - - - - @checkFiles[sDir;sName] ^checkFile[$sDir/${sName}.dir] ^checkFile[$sDir/${sName}.pag] - - - @checkFile[sFileName] $sFileName -- ^if(-f $sFileName){exist}{not exist}
- - @getFileSize[sDir;sName][fStat] $fStat[^file::stat[$sDir/${sName}.pag]] $result($fStat.size) - - @fill[hf][iCount;i] $iCount(150) ^for[i](0;$iCount){