Index: test/cctest/test-threads.cc |
diff --git a/test/cctest/test-threads.cc b/test/cctest/test-threads.cc |
index e192bc155941d8f617bca42afa50b1cfb9ed90a7..5f2cdae2a2488a2931c50eee50c54933e8f47042 100644 |
--- a/test/cctest/test-threads.cc |
+++ b/test/cctest/test-threads.cc |
@@ -32,12 +32,7 @@ |
#include "src/isolate.h" |
-enum Turn { |
- FILL_CACHE, |
- CLEAN_CACHE, |
- SECOND_TIME_FILL_CACHE, |
- DONE |
-}; |
+enum Turn { FILL_CACHE, CLEAN_CACHE, SECOND_TIME_FILL_CACHE, CACHE_DONE }; |
static Turn turn = FILL_CACHE; |
@@ -76,7 +71,7 @@ class ThreadA : public v8::base::Thread { |
// Rerun the script. |
CHECK(script->Run()->IsTrue()); |
- turn = DONE; |
+ turn = CACHE_DONE; |
} |
}; |
@@ -116,7 +111,7 @@ TEST(JSFunctionResultCachesInTwoThreads) { |
threadA.Join(); |
threadB.Join(); |
- CHECK_EQ(DONE, turn); |
+ CHECK_EQ(CACHE_DONE, turn); |
} |
class ThreadIdValidationThread : public v8::base::Thread { |