Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Side by Side Diff: test/cctest/test-api.cc

Issue 12218034: Make the GC stress builder go green. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/cctest/cctest.h ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 11096 matching lines...) Expand 10 before | Expand all | Expand 10 after
11107 void ApiTestFuzzer::TearDown() { 11107 void ApiTestFuzzer::TearDown() {
11108 fuzzing_ = false; 11108 fuzzing_ = false;
11109 for (int i = 0; i < RegisterThreadedTest::count(); i++) { 11109 for (int i = 0; i < RegisterThreadedTest::count(); i++) {
11110 ApiTestFuzzer *fuzzer = RegisterThreadedTest::nth(i)->fuzzer_; 11110 ApiTestFuzzer *fuzzer = RegisterThreadedTest::nth(i)->fuzzer_;
11111 if (fuzzer != NULL) fuzzer->Join(); 11111 if (fuzzer != NULL) fuzzer->Join();
11112 } 11112 }
11113 } 11113 }
11114 11114
11115 11115
11116 // Lets not be needlessly self-referential. 11116 // Lets not be needlessly self-referential.
11117 TEST(Threading) { 11117 TEST(Threading1) {
11118 // TODO(mstarzinger): Disabled in GC stress mode for now, we should find the
11119 // correct timeout for this an re-enable this test again
11120 if (i::FLAG_stress_compaction) return;
11118 ApiTestFuzzer::SetUp(ApiTestFuzzer::FIRST_PART); 11121 ApiTestFuzzer::SetUp(ApiTestFuzzer::FIRST_PART);
11119 ApiTestFuzzer::RunAllTests(); 11122 ApiTestFuzzer::RunAllTests();
11120 ApiTestFuzzer::TearDown(); 11123 ApiTestFuzzer::TearDown();
11121 } 11124 }
11122 11125
11123 TEST(Threading2) { 11126 TEST(Threading2) {
11124 ApiTestFuzzer::SetUp(ApiTestFuzzer::SECOND_PART); 11127 ApiTestFuzzer::SetUp(ApiTestFuzzer::SECOND_PART);
11125 ApiTestFuzzer::RunAllTests(); 11128 ApiTestFuzzer::RunAllTests();
11126 ApiTestFuzzer::TearDown(); 11129 ApiTestFuzzer::TearDown();
11127 } 11130 }
(...skipping 7084 matching lines...) Expand 10 before | Expand all | Expand 10 after
18212 i::Semaphore* sem_; 18215 i::Semaphore* sem_;
18213 volatile int sem_value_; 18216 volatile int sem_value_;
18214 }; 18217 };
18215 18218
18216 18219
18217 THREADED_TEST(SemaphoreInterruption) { 18220 THREADED_TEST(SemaphoreInterruption) {
18218 ThreadInterruptTest().RunTest(); 18221 ThreadInterruptTest().RunTest();
18219 } 18222 }
18220 18223
18221 #endif // WIN32 18224 #endif // WIN32
OLDNEW
« no previous file with comments | « test/cctest/cctest.h ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698