Browse Source

* Fixed test so the same result as in Delphi

git-svn-id: trunk@26877 -
michael 11 years ago
parent
commit
9faea4e757
1 changed files with 6 additions and 1 deletions
  1. 6 1
      tests/test/cg/variants/ivarol105.pp

+ 6 - 1
tests/test/cg/variants/ivarol105.pp

@@ -41,11 +41,16 @@ begin
   end;
 
   try
+    y105:='a';
     v := y105;
     test105(v);
+    Writeln('Did not catch exception as expected');
+    Halt(1)
   except
     on E : TObject do
-      halt(1);
+      begin
+      Writeln('Caught exception ',E.ClassName,'as expected');
+      end
   end;
 end;