Author: miguel
Date: 2007-01-03 23:16:26 -0500 (Wed, 03 Jan 2007)
New Revision: 70451
Modified:
trunk/mono/mono/mini/ChangeLog
trunk/mono/mono/mini/driver.c
Log:
2007-01-03 Miguel de Icaza <[EMAIL PROTECTED]>
* driver.c: If nothing fail, do not use the string "failed",
because it makes it very annoying to view test result logs on the
web.
Modified: trunk/mono/mono/mini/ChangeLog
===================================================================
--- trunk/mono/mono/mini/ChangeLog 2007-01-04 04:08:55 UTC (rev 70450)
+++ trunk/mono/mono/mini/ChangeLog 2007-01-04 04:16:26 UTC (rev 70451)
@@ -1,3 +1,9 @@
+2007-01-03 Miguel de Icaza <[EMAIL PROTECTED]>
+
+ * driver.c: If nothing fail, do not use the string "failed",
+ because it makes it very annoying to view test result logs on the
+ web.
+
2006-12-30 Miguel de Icaza <[EMAIL PROTECTED]>
* debug-debugger.c (mono_debugger_main): Rename "main" to
Modified: trunk/mono/mono/mini/driver.c
===================================================================
--- trunk/mono/mono/mini/driver.c 2007-01-04 04:08:55 UTC (rev 70450)
+++ trunk/mono/mono/mini/driver.c 2007-01-04 04:16:26 UTC (rev 70451)
@@ -385,8 +385,13 @@
fprintf (mini_stats_fd, "],\n");
g_timer_stop (timer);
elapsed = g_timer_elapsed (timer, NULL);
- g_print ("Results: total tests: %d, failed: %d, cfailed: %d
(pass: %.2f%%)\n",
- run, failed, cfailed, 100.0*(run-failed-cfailed)/run);
+ if (failed > 0 || cfailed > 0){
+ g_print ("Results: total tests: %d, failed: %d,
cfailed: %d (pass: %.2f%%)\n",
+ run, failed, cfailed,
100.0*(run-failed-cfailed)/run);
+ } else {
+ g_print ("Results: total tests: %d, all pass \n", run);
+ }
+
g_print ("Elapsed time: %f secs (%f, %f), Code size: %d\n\n",
elapsed,
elapsed - comp_time, comp_time, code_size);
total += failed + cfailed;
@@ -418,8 +423,14 @@
total += mini_regression (mono_assembly_get_image (ass),
verbose, &run);
total_run += run;
}
- g_print ("Overall results: tests: %d, failed: %d, opt combinations: %d
(pass: %.2f%%)\n",
- total_run, total, (int)G_N_ELEMENTS (opt_sets),
100.0*(total_run-total)/total_run);
+ if (total > 0){
+ g_print ("Overall results: tests: %d, failed: %d, opt
combinations: %d (pass: %.2f%%)\n",
+ total_run, total, (int)G_N_ELEMENTS (opt_sets),
100.0*(total_run-total)/total_run);
+ } else {
+ g_print ("Overall results: tests: %d, 100%% pass, opt
combinations: %d\n",
+ total_run, (int)G_N_ELEMENTS (opt_sets));
+ }
+
return total;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches