Browse Source

* Report all failed cases instead of halting at the first failure.

git-svn-id: trunk@28255 -
sergei 11 năm trước cách đây
mục cha
commit
4d73dd4977
1 tập tin đã thay đổi với 7 bổ sung2 xóa
  1. 7 2
      tests/tbs/tb0162.pp

+ 7 - 2
tests/tbs/tb0162.pp

@@ -5,10 +5,13 @@
 
 uses sysutils;
 
+var
+  has_errors: boolean;
+
 procedure doerror(l: longint);
 begin
   writeln('error near ',l);
-  halt(1);
+  has_errors:=true;
 end;
 
 {$R-}
@@ -20,6 +23,7 @@ var i: integer;
     n: int64;
     q: qword;
 begin
+  has_errors:=false;
   i := 32767;
   i := i + 15;
   b := 255;
@@ -212,5 +216,6 @@ begin
   end;
 
 {$endif fpc}
-
+  if has_errors then
+    halt(1);
 End.