--- parser3/tests/270.html 2011/11/11 06:15:41 1.1 +++ parser3/tests/270.html 2017/02/13 15:11:50 1.6 @@ -1,10 +1,25 @@ @main[] $dir[/tests/270_dir] -^file:find[$dir/subdir/270.txt]
-^file:find[$dir/subdir/270.txt]{file not found}
-^file:find[$dir/270.txt]
-^file:find[$dir/270.txt]{file not found}
-^file:find[$dir/270.html]
-^file:find[$dir/270.html]{file not found}
-^file:find[$dir/not-exist]
-^file:find[$dir/not-exist]{file not found}
+ +^do[$dir///subdir/270.txt]{file not found (error)} +^do[$dir/270.txt]{file not found (error)} +^do[$dir/subdir/zzz/270.html]{file not found (error)} +^do[$dir/not-exist] +^do[$dir///not-exist]{file not found (OK)} +^do[/not-exist]{file not found (OK)} + +^do[/Makefile]{file not found (error) - note: parser3/Makefile is checked here (not tests/Makefile) and there is no such file under Windows} +^do[Makefile]{file not found (error)} + +^do[]{file not found (OK)} +^do[/]{file not found (OK)} +^do[///]{file not found (OK)} +^do[$dir/subdir//z/]{file not found (OK)} + + +@do[sFileSpec;*hParams] +^if($hParams){ + $result[^file:find[$sFileSpec]{$hParams.0}
] +}{ + $result[^file:find[$sFileSpec]
] +}