Browse Source

raise error if worng code generated

pierre 25 years ago
parent
commit
17e185afcb
1 changed files with 8 additions and 2 deletions
  1. 8 2
      tests/test/testintr.pp

+ 8 - 2
tests/test/testintr.pp

@@ -28,7 +28,13 @@ begin
   test1;
   test1;
   test2(x,y);
   test2(x,y);
   if (x<>1) or (y<>2) then
   if (x<>1) or (y<>2) then
-    Writeln('Error with interrupt');
+    begin
+      Writeln('Error with interrupt');
+      Halt(1);
+    end;
   if test3<>55 then
   if test3<>55 then
-    Writeln('Error with interrupt function');
+    begin
+      Writeln('Error with interrupt function');
+      Halt(1);
+    end;
 end.
 end.