File tree 2 files changed +15
-4
lines changed
2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,11 @@ command 'build',
31
31
32
32
command 'test',
33
33
description: 'executes "make test"',
34
+ parameters: {
35
+ tests: { wrap: "TESTS=tests/%s", optional: true },
36
+ },
34
37
script: <<-eof
35
- cd /data/build; `which gmake || which make` test NO_INTERACTION=1 REPORT_EXIT_STATUS=1
38
+ cd /data/build; `which gmake || which make` test %{tests} NO_INTERACTION=1 REPORT_EXIT_STATUS=1
36
39
eof
37
40
38
41
command 'shell',
Original file line number Diff line number Diff line change @@ -6,15 +6,23 @@ Test V8::executeString() : Test getJsStartColumn on script exception
6
6
<?php
7
7
$ v8 = new V8Js ();
8
8
9
+ // V8 started to return different start column numbers,
10
+ // hence let's do two errors and just look at the offset
11
+
9
12
try {
10
13
$ v8 ->executeString ("print(blar()); " );
11
14
}
12
- catch (V8JsScriptException $ e ) {
13
- var_dump ($ e ->getJsStartColumn ());
15
+ catch (V8JsScriptException $ a ) { }
16
+
17
+ try {
18
+ $ v8 ->executeString ("(null); print(blar()); " );
14
19
}
20
+ catch (V8JsScriptException $ b ) { }
21
+
22
+ var_dump ($ b ->getJsStartColumn () - $ a ->getJsStartColumn ());
15
23
16
24
?>
17
25
===EOF===
18
26
--EXPECT--
19
- int(6 )
27
+ int(8 )
20
28
===EOF===
You can’t perform that action at this time.
0 commit comments