You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by gs...@apache.org on 2007/02/22 16:34:03 UTC

svn commit: r510551 - /harmony/enhanced/drlvm/trunk/vm/tests/unit/thread/test_ti_instrum.c

Author: gshimansky
Date: Thu Feb 22 07:34:00 2007
New Revision: 510551

URL: http://svn.apache.org/viewvc?view=rev&rev=510551
Log:
Fixed test to compile on C correctly


Modified:
    harmony/enhanced/drlvm/trunk/vm/tests/unit/thread/test_ti_instrum.c

Modified: harmony/enhanced/drlvm/trunk/vm/tests/unit/thread/test_ti_instrum.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/tests/unit/thread/test_ti_instrum.c?view=diff&rev=510551&r1=510550&r2=510551
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/tests/unit/thread/test_ti_instrum.c (original)
+++ harmony/enhanced/drlvm/trunk/vm/tests/unit/thread/test_ti_instrum.c Thu Feb 22 07:34:00 2007
@@ -119,6 +119,7 @@
     tested_threads_run(run_for_test_jthread_get_blocked_count);
 
     for (i = 0; i < MAX_TESTED_THREAD_NUMBER; i++){
+        int cycles = MAX_TIME_TO_WAIT / CLICK_TIME_MSEC;
 
         waiting_on_monitor_nmb = 0;
         critical_tts = NULL;
@@ -132,7 +133,6 @@
                 critical_tts = tts;
             }
         }
-        int cycles = MAX_TIME_TO_WAIT / CLICK_TIME_MSEC;
         while ((MAX_TESTED_THREAD_NUMBER - i > waiting_on_monitor_nmb + 1) && (cycles-- > 0)) {
             tf_assert_same(jthread_get_blocked_count(&waiting_on_monitor_nmb), TM_ERROR_NONE);
             sleep_a_click();