only warm up if runing all tests
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 2 Mar 2011 09:33:47 +0000 (09:33 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 2 Mar 2011 09:33:47 +0000 (09:33 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/expedite@57467 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/ui.c

index 1fe2cdf..041f92f 100644 (file)
@@ -582,11 +582,14 @@ _ui_setup(void)
    sync();
 #endif
    /* warm up the cpu with some spinning */
-   t0 = time(NULL);
-   for (;;)
+   if (run_all)
      {
-        t = time(NULL);
-        if (t - t0 > 2) break;
+        t0 = time(NULL);
+        for (;;)
+          {
+             t = time(NULL);
+             if (t - t0 > 2) break;
+          }
      }
 
    if (run_all)