Преглед изворни кода

raise error if worng code generated

pierre пре 25 година
родитељ
комит
17e185afcb
1 измењених фајлова са 8 додато и 2 уклоњено
  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.