Browse Source

* extended test

git-svn-id: trunk@15582 -
Jonas Maebe 15 years ago
parent
commit
0f269a4a7b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/webtbs/tw16311.pp

+ 3 - 0
tests/webtbs/tw16311.pp

@@ -66,6 +66,7 @@ end;
 
 
 var
 var
   A: TMyObject;
   A: TMyObject;
+  gotexception: boolean;
 begin
 begin
   HaltOnNotReleased := true;
   HaltOnNotReleased := true;
   CreatedCount := 0;
   CreatedCount := 0;
@@ -80,6 +81,8 @@ begin
   except
   except
     writeln('created objects = ', CreatedCount);
     writeln('created objects = ', CreatedCount);
     writeln('destroyed objects = ', DestroyedCount);
     writeln('destroyed objects = ', DestroyedCount);
+    gotexception:=true;
     writeln;
     writeln;
   end;
   end;
+  if not gotexception then halt(1);
 end.
 end.