warm up cpu on auto-tests

SVN revision: 54332
This commit is contained in:
Carsten Haitzler 2010-11-08 15:02:58 +00:00
parent 627a2213b2
commit f9b851a365
2 changed files with 14 additions and 1 deletions

View File

@ -1373,7 +1373,7 @@ main(int argc, char **argv)
ui_args(argc, argv);
evas_font_hinting_set(evas, EVAS_FONT_HINTING_AUTO);
while (_engine_go())
{
engine_loop();

View File

@ -453,6 +453,7 @@ _ui_setup(void)
{
Evas_Object *o;
Evas_Coord x, y, w, h;
time_t t0, t;
o = evas_object_rectangle_add(evas);
evas_object_move(o, 0, 0);
@ -551,6 +552,18 @@ _ui_setup(void)
#undef UI
_ui_menu_item_add("exit.png", "Exit", _ui_exit);
/* make sure disk io isn't going to turn up unexpectedly */
sync();
sync();
sync();
/* warm up the cpu with some spinning */
t0 = time(NULL);
for (;;)
{
t = time(NULL);
if (t - t0 > 2) break;
}
if (run_all)
{
_ui_all();