Hi Pawel,

from a glance onto the log files it seems to me that you are running
an older version of v8. Tests that concern new features that has since
then been added obviously fail. The reason could be that you have an
old libv8 in your LD_LIBRARY_PATH, to which the shared library build
of d8 and the shell has been linked to instead of the newly compiled
libv8.so in the v8 directory. Rico's suggestion should work.

Aside from this the sample shell has been deprecated for testing. It
has been simplified to serve as an example for API usage.

Regards,

Yang


On Aug 31, 6:13 am, Paweł Hajdan, Jr. <[email protected]> wrote:
> I was packaging v8-3.5.8 for Linux as a shared library, and got tons of test
> failures. I've tried using d8 and shell as the test shell, and bots produce
> failures. Shell seems to produce less of them though.
>
> Are the tests expected to pass (i.e. do you test before release)? How can I
> make them pass?
>
> Some snippets from the shell log below, and full logs attached:
>
> === release element-kind ===
> Path: mjsunit/element-kind
> --- stdout ---
> /var/tmp/portage/dev-lang/v8-3.5.8/work/v8-3.5.8/test/mjsunit/element-kind. 
> js:94:
> ReferenceError: Int8Array is not defined
> assertKind(element_kind.external_byte_elements,           new
> Int8Array(9001))
>                                                               ^
> ReferenceError: Int8Array is not defined
>     at
> /var/tmp/portage/dev-lang/v8-3.5.8/work/v8-3.5.8/test/mjsunit/element-kind. 
> js:94:63
> Command: /var/tmp/portage/dev-lang/v8-3.5.8/work/v8-3.5.8/shell
> --allow-natives-syntax
> /var/tmp/portage/dev-lang/v8-3.5.8/work/v8-3.5.8/test/mjsunit/mjsunit.js
> /var/tmp/portage/dev-lang/v8-3.5.8/work/v8-3.5.8/test/mjsunit/element-kind. js
> === release external-array ===
> Path: mjsunit/external-array
> --- stdout ---
> /var/tmp/portage/dev-lang/v8-3.5.8/work/v8-3.5.8/test/mjsunit/external-arra 
> y.js:36:
> ReferenceError: Int32Array is not defined
> var a = new Int32Array(2);
>             ^
> ReferenceError: Int32Array is not defined
>     at
> /var/tmp/portage/dev-lang/v8-3.5.8/work/v8-3.5.8/test/mjsunit/external-arra 
> y.js:36:13
> Command: /var/tmp/portage/dev-lang/v8-3.5.8/work/v8-3.5.8/shell
> --allow-natives-syntax --expose-gc
> /var/tmp/portage/dev-lang/v8-3.5.8/work/v8-3.5.8/test/mjsunit/mjsunit.js
> /var/tmp/portage/dev-lang/v8-3.5.8/work/v8-3.5.8/test/mjsunit/external-arra 
> y.js
> Path: mjsunit/compiler/thisfunction
> --- stdout ---
> Warning: unknown flag --stress-opt.
> Try --help for options
> /var/tmp/portage/dev-lang/v8-3.5.8/work/v8-3.5.8/test/mjsunit/compiler/this 
> function.js:31:
> TypeError: undefined is not a function
>     if (x == 1) return 42; else return f(1);
>                                        ^
> TypeError: undefined is not a function
>     at f
> (/var/tmp/portage/dev-lang/v8-3.5.8/work/v8-3.5.8/test/mjsunit/compiler/thi 
> sfunction.js:31:40)
>     at
> /var/tmp/portage/dev-lang/v8-3.5.8/work/v8-3.5.8/test/mjsunit/compiler/this 
> function.js:32:4
> Command: /var/tmp/portage/dev-lang/v8-3.5.8/work/v8-3.5.8/shell --stress-opt
> --always-opt
> /var/tmp/portage/dev-lang/v8-3.5.8/work/v8-3.5.8/test/mjsunit/mjsunit.js
> /var/tmp/portage/dev-lang/v8-3.5.8/work/v8-3.5.8/test/mjsunit/compiler/this 
> function.js
>
>  v8-d8.log
> 294KViewDownload
>
>  v8-shell.log
> 151KViewDownload

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to