Index: test/debugger/testcfg.py |
diff --git a/test/debugger/testcfg.py b/test/debugger/testcfg.py |
index bef7544a07cbe1e7a2ebbe035929252424e6172e..a07acbce5bd5f05dc4d20b8b8f6c3b520bffc119 100644 |
--- a/test/debugger/testcfg.py |
+++ b/test/debugger/testcfg.py |
@@ -10,6 +10,7 @@ from testrunner.objects import testcase |
FILES_PATTERN = re.compile(r"//\s+Files:(.*)") |
FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)") |
+MODULE_PATTERN = re.compile(r"^// MODULE$", flags=re.MULTILINE) |
class DebuggerTestSuite(testsuite.TestSuite): |
@@ -54,6 +55,8 @@ class DebuggerTestSuite(testsuite.TestSuite): |
files.append(os.path.join(self.root, "test-api.js")) |
files.extend([ os.path.normpath(os.path.join(self.root, '..', '..', f)) |
for f in files_list ]) |
+ if MODULE_PATTERN.search(source): |
+ files.append("--module") |
files.append(os.path.join(self.root, testcase.path + self.suffix())) |
flags += files |