瀏覽代碼

* extended test

git-svn-id: trunk@15582 -
Jonas Maebe 15 年之前
父節點
當前提交
0f269a4a7b
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tests/webtbs/tw16311.pp

+ 3 - 0
tests/webtbs/tw16311.pp

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