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

Unified Diff: runtime/vm/regexp_test.cc

Issue 761663006: Disable RegExp tests when using JSCRE backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/regexp_test.cc
diff --git a/runtime/vm/regexp_test.cc b/runtime/vm/regexp_test.cc
index 0b1f3003d1836c01c4d3d298e04f07235af2e84e..4af897491b69dd6d2f8fd9b4b3d56ac8203bff14 100644
--- a/runtime/vm/regexp_test.cc
+++ b/runtime/vm/regexp_test.cc
@@ -11,6 +11,8 @@
namespace dart {
+DECLARE_FLAG(bool, use_jscre);
+
static RawArray* Match(const String& pat, const String& str) {
Isolate* isolate = Isolate::Current();
const JSRegExp& regexp = JSRegExp::Handle(
@@ -23,6 +25,9 @@ static RawArray* Match(const String& pat, const String& str) {
}
TEST_CASE(RegExp_OneByteString) {
+ if (FLAG_use_jscre)
+ return;
+
uint8_t chars[] = { 'a', 'b', 'c', 'b', 'a' };
intptr_t len = ARRAY_SIZE(chars);
const String& str = String::Handle(
@@ -44,6 +49,9 @@ TEST_CASE(RegExp_OneByteString) {
}
TEST_CASE(RegExp_TwoByteString) {
+ if (FLAG_use_jscre)
+ return;
+
uint16_t chars[] = { 'a', 'b', 'c', 'b', 'a' };
intptr_t len = ARRAY_SIZE(chars);
const String& str = String::Handle(
@@ -65,6 +73,9 @@ TEST_CASE(RegExp_TwoByteString) {
}
TEST_CASE(RegExp_ExternalOneByteString) {
+ if (FLAG_use_jscre)
+ return;
+
uint8_t chars[] = { 'a', 'b', 'c', 'b', 'a' };
intptr_t len = ARRAY_SIZE(chars);
const String& str = String::Handle(
@@ -86,6 +97,9 @@ TEST_CASE(RegExp_ExternalOneByteString) {
}
TEST_CASE(RegExp_ExternalTwoByteString) {
+ if (FLAG_use_jscre)
+ return;
+
uint16_t chars[] = { 'a', 'b', 'c', 'b', 'a' };
intptr_t len = ARRAY_SIZE(chars);
const String& str = String::Handle(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698