diff --git a/Commandfile b/Commandfile index 63f8290..9000767 100644 --- a/Commandfile +++ b/Commandfile @@ -31,8 +31,11 @@ command 'build', command 'test', description: 'executes "make test"', + parameters: { + tests: { wrap: "TESTS=tests/%s", optional: true }, + }, script: <<-eof - cd /data/build; `which gmake || which make` test NO_INTERACTION=1 REPORT_EXIT_STATUS=1 + cd /data/build; `which gmake || which make` test %{tests} NO_INTERACTION=1 REPORT_EXIT_STATUS=1 eof command 'shell', diff --git a/tests/exception_start_column.phpt b/tests/exception_start_column.phpt index 682e290..9598bc1 100644 --- a/tests/exception_start_column.phpt +++ b/tests/exception_start_column.phpt @@ -6,15 +6,23 @@ Test V8::executeString() : Test getJsStartColumn on script exception executeString("print(blar());"); } -catch(V8JsScriptException $e) { - var_dump($e->getJsStartColumn()); +catch(V8JsScriptException $a) { } + +try { + $v8->executeString("(null); print(blar());"); } +catch(V8JsScriptException $b) { } + +var_dump($b->getJsStartColumn() - $a->getJsStartColumn()); ?> ===EOF=== --EXPECT-- -int(6) +int(8) ===EOF===