Make extensions in different tests have different names.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 23 Jun 2011 08:28:23 +0000 (08:28 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 23 Jun 2011 08:28:23 +0000 (08:28 +0000)
In the threaded test, they influenced each other.

Review URL: http://codereview.chromium.org/7244001

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8389 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

test/cctest/test-api.cc

index de2c203b8a9e2a8b878b2e50e27d577e15a06299..bcea16f3e9e72f97ca7fc798694c4252a95c49cb 100644 (file)
@@ -4195,7 +4195,7 @@ THREADED_TEST(NativeFunctionDeclaration) {
 
 THREADED_TEST(NativeFunctionDeclarationError) {
   v8::HandleScope handle_scope;
-  const char* name = "nativedecl";
+  const char* name = "nativedeclerr";
   // Syntax error in extension code.
   v8::RegisterExtension(new NativeFunctionExtension(name,
                                                     "native\nfunction foo();"));
@@ -4207,7 +4207,7 @@ THREADED_TEST(NativeFunctionDeclarationError) {
 
 THREADED_TEST(NativeFunctionDeclarationErrorEscape) {
   v8::HandleScope handle_scope;
-  const char* name = "nativedecl";
+  const char* name = "nativedeclerresc";
   // Syntax error in extension code - escape code in "native" means that
   // it's not treated as a keyword.
   v8::RegisterExtension(new NativeFunctionExtension(