[SERVER-12461] test failures observed on aarch64 Created: 23/Jan/14  Updated: 05/Feb/15  Resolved: 20/May/14

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 2.4.9, 2.6.0-rc0
Fix Version/s: 2.7.1

Type: Bug Priority: Minor - P4
Reporter: Michael Hudson-Doyle Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: arm64, pull-request
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

AArch64 / Ubuntu


Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

A few of the C++ unit tests fail on an arm64 system:

build/linux2/disable-scripting/mongo/db/ops/modifier_push_test
build/linux2/disable-scripting/mongo/descriptive_stats_test
build/linux2/disable-scripting/mongo/stringutils_test

It all turns out to be fairly minor stuff, I'm just filing this ticket so I can link the PRs on github to it



 Comments   
Comment by Ramon Fernandez Marina [ 20/May/14 ]

Author:

{u'username': u'mwhudson', u'name': u'Michael Hudson-Doyle', u'email': u'michael.hudson@linaro.org'}

Message: SERVER-12461 Use larger values to test for too large $position arguments.

The previous values were integers that were just 3 away from the largest
possible 64-bit integer, were parsed as the same float as the largest possible
integer, and so were accepted. This changes them to be much much larger.

Signed-off-by: Benety Goh <benety@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/2fdfb48d51a31dedb28d34bde6c3a02c22ced969

Comment by Benety Goh [ 20/May/14 ]

Resolving this ticket because all related pull requests have been closed.

Comment by Githook User [ 12/May/14 ]

Author:

{u'username': u'mwhudson', u'name': u'Michael Hudson-Doyle', u'email': u'michael.hudson@linaro.org'}

Message: SERVER-12461 Ensure LexNumCmp::cmp only returns 1, -1 or 0

strncmp's documentation says:

It returns an integer less than, equal to, or greater than
zero if s1 is found, respectively, to be less than, to match,
or be greater than s2.

LexNumCmp::cmp is tested as returning only -1, 1 or 0 but returns the
return value of strncmp directly. This changes it to clamp the return
value to -1, 1 or 0.

Signed-off-by: Benety Goh <benety@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/f0596feddd0ffb4ffcb379371d03d0f44e516d0e

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