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

Unified Diff: test/cctest/cctest.h

Issue 456: Disable three debug tests that failed because they rely on wrong for-in order... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 3 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
« no previous file with comments | « no previous file | test/cctest/cctest.cc » ('j') | test/cctest/cctest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/cctest.h
===================================================================
--- test/cctest/cctest.h (revision 147)
+++ test/cctest/cctest.h (working copy)
@@ -31,25 +31,35 @@
#ifndef TEST
#define TEST(Name) \
static void Test##Name(); \
- CcTest register_test_##Name(Test##Name, __FILE__, #Name); \
+ CcTest register_test_##Name(Test##Name, __FILE__, #Name, true); \
static void Test##Name()
#endif
+#ifndef DISABLED_TEST
+#define DISABLED_TEST(Name) \
+ static void Test##Name(); \
+ CcTest register_test_##Name(Test##Name, __FILE__, #Name, false); \
+ static void Test##Name()
+#endif
+
class CcTest {
public:
typedef void (TestFunction)();
- CcTest(TestFunction* callback, const char* file, const char* name);
+ CcTest(TestFunction* callback, const char* file, const char* name,
+ bool enabled);
void Run() { callback_(); }
static int test_count();
static CcTest* last() { return last_; }
CcTest* prev() { return prev_; }
const char* file() { return file_; }
const char* name() { return name_; }
+ bool enabled() { return enabled_; }
private:
TestFunction* callback_;
const char* file_;
const char* name_;
+ bool enabled_;
static CcTest* last_;
CcTest* prev_;
};
« no previous file with comments | « no previous file | test/cctest/cctest.cc » ('j') | test/cctest/cctest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698