Explorar o código

* Fixed test so the same result as in Delphi

git-svn-id: trunk@26877 -
michael %!s(int64=11) %!d(string=hai) anos
pai
achega
9faea4e757
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  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;