[SERVER-8828] JSTests::Fundamental unit test fails on Spidermonkey Created: 01/Mar/13  Updated: 11/Jul/16  Resolved: 05/Mar/13

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.4.0-rc2

Type: Bug Priority: Major - P3
Reporter: Shaun Verch Assignee: Ben Becker
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

JSTests::Fundamental calls the tests that come with the interpreter. For Spidermonkey these are in the runTest() function in engine_spidermonkey.cpp.

Verified that this worked at least before --usev8 was the default.

To reproduce:

Compile latest version:

scons --usesm=USESM test

Run javascript unit tests:

./test js

Error output:

...
Fri Mar  1 15:10:18.641 [testsuite]      going to run test: JSTests::Fundamental
Fri Mar  1 15:10:18.657 [testsuite] FAIL: JSTests::Fundamental     std::exception: (anon) exec failed: JS Error: ReferenceError: verify is not defined (anon):1 in test JSTests::Fundamental
...



 Comments   
Comment by auto [ 05/Mar/13 ]

Author:

{u'date': u'2013-03-05T17:17:04Z', u'name': u'Ben Becker', u'email': u'ben.becker@10gen.com'}

Message: SERVER-8828: replace verify() with assert() in spidermonkey startup tests
Branch: master
https://github.com/mongodb/mongo/commit/8b37c220e98451d67d89f2a8e6b3c08bec442221

Generated at Thu Feb 08 03:18:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.