Browse Source

* generate some output on error

pierre 24 years ago
parent
commit
c9d78b7432
1 changed files with 9 additions and 0 deletions
  1. 9 0
      tests/webtbs/tw1414.pp

+ 9 - 0
tests/webtbs/tw1414.pp

@@ -1,5 +1,14 @@
 uses
   dos;
+ var
+   i : longint;
 begin
+{$i-}
   chdir('');
+  i:=ioresult;
+  if i<>0 then
+    begin
+      Writeln('chdir('''') fails wih error ',i);
+      Halt(i);
+    end;
 end.