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"); |
+} |