diff --git a/tests/small/isinst.cs b/tests/small/isinst.cs index d64c46a7..cccf3710 100644 --- a/tests/small/isinst.cs +++ b/tests/small/isinst.cs @@ -19,7 +19,7 @@ public override long foo () { } } - static bool bench (long iterations, object[] objs) { + static long bench (long iterations, object[] objs) { long checksum = 0; for (long i = 0; i < iterations; ++i) { foreach (object o in objs) { @@ -34,7 +34,7 @@ static bool bench (long iterations, object[] objs) { } } } - return checksum == (4 * iterations); + return checksum; } public static void Main (string []args) { @@ -46,6 +46,9 @@ public static void Main (string []args) { objs [3] = new C (); if (args.Length > 0) n = Int64.Parse (args[0]); - System.Environment.Exit (bench (n, objs) ? 0 : 1); + long checksum = bench (n, objs); + Console.WriteLine ("iterations: " + n); + Console.WriteLine ("checksum: " + checksum); + System.Environment.Exit (checksum == (11 * n) ? 0 : 1); } } diff --git a/tests/small/isinst.exe b/tests/small/isinst.exe index c668ee0c..0c3481a9 100755 Binary files a/tests/small/isinst.exe and b/tests/small/isinst.exe differ