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

Unified Diff: test/cctest/test-serialize.cc

Issue 321001: Fix bug that meant that dependent tests were never reported as... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: test/cctest/test-serialize.cc
===================================================================
--- test/cctest/test-serialize.cc (revision 3112)
+++ test/cctest/test-serialize.cc (working copy)
@@ -286,3 +286,20 @@
v8::Local<v8::Value> value = script->Run();
CHECK(value->IsUndefined());
}
+
+
+extern "C" void V8_Fatal(const char* file, int line, const char* format, ...);
Kasper Lund 2009/10/22 13:33:28 Is that really necessary? You trust V8_Fatal over
+
+
+TEST(TestThatAlwaysSucceeds) {
+}
+
+
+TEST(TestThatAlwaysFails) {
+ V8_Fatal(__FILE__, __LINE__, "Artificial failure");
+}
+
+
+DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) {
+ V8_Fatal(__FILE__, __LINE__, "Artificial failure2");
+}
« test/cctest/cctest.status ('K') | « test/cctest/cctest.status ('k') | tools/test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698