realm-core icon indicating copy to clipboard operation
realm-core copied to clipboard

Run the unit tests on Linux32

Open emanuelez opened this issue 8 years ago • 1 comments
trafficstars

While working on CMake I ran the core unit tests in release mode on an Android emulator running in x86(32bit) mode. Four tests fail like this:

Realm version: 2.3.0 with Debug Disabled
Encryption: Enabled at compile-time (always encrypt = no)

REALM_MAX_BPNODE_SIZE = 1000
REALM_MEMDEBUG = Disabled

sizeof (size_t) * 8 = 32

Compiler supported SSE (auto detect):       No
This CPU supports SSE (auto detect):        None
Compiler supported AVX (auto detect):       No
This CPU supports AVX (AVX1) (auto detect): No

Unit test random seed:                      1234567

/home/jenkins.1/workspace/realm_realm-core_PR-1883-RUAEEMYIBJC462P6G2XLRN2CSJSZAR5NGJC6RZCAGIRODE6WWK5A/test/test_array_float.cpp:328: ERROR in ArrayFloat_Minimum: CHECK_EQUAL(values[2], res) failed with (-1, 1.1)
/home/jenkins.1/workspace/realm_realm-core_PR-1883-RUAEEMYIBJC462P6G2XLRN2CSJSZAR5NGJC6RZCAGIRODE6WWK5A/test/test_array_float.cpp:334: ERROR in ArrayFloat_Minimum: CHECK_EQUAL(values[2], res) failed with (-1, 2.2)
/home/jenkins.1/workspace/realm_realm-core_PR-1883-RUAEEMYIBJC462P6G2XLRN2CSJSZAR5NGJC6RZCAGIRODE6WWK5A/test/test_array_float.cpp:328: ERROR in ArrayDouble_Minimum: CHECK_EQUAL(values[2], res) failed with (-1, 1.1)
/home/jenkins.1/workspace/realm_realm-core_PR-1883-RUAEEMYIBJC462P6G2XLRN2CSJSZAR5NGJC6RZCAGIRODE6WWK5A/test/test_array_float.cpp:334: ERROR in ArrayDouble_Minimum: CHECK_EQUAL(values[2], res) failed with (-1, 2.2)
/home/jenkins.1/workspace/realm_realm-core_PR-1883-RUAEEMYIBJC462P6G2XLRN2CSJSZAR5NGJC6RZCAGIRODE6WWK5A/test/test_array_float.cpp:371: ERROR in ArrayFloat_Maximum: CHECK_EQUAL(values[3], res) failed with (5.5, -1)
/home/jenkins.1/workspace/realm_realm-core_PR-1883-RUAEEMYIBJC462P6G2XLRN2CSJSZAR5NGJC6RZCAGIRODE6WWK5A/test/test_array_float.cpp:377: ERROR in ArrayFloat_Maximum: CHECK_EQUAL(values[3], res) failed with (5.5, -1)
/home/jenkins.1/workspace/realm_realm-core_PR-1883-RUAEEMYIBJC462P6G2XLRN2CSJSZAR5NGJC6RZCAGIRODE6WWK5A/test/test_array_float.cpp:371: ERROR in ArrayDouble_Maximum: CHECK_EQUAL(values[3], res) failed with (5.5, -1)
/home/jenkins.1/workspace/realm_realm-core_PR-1883-RUAEEMYIBJC462P6G2XLRN2CSJSZAR5NGJC6RZCAGIRODE6WWK5A/test/test_array_float.cpp:377: ERROR in ArrayDouble_Maximum: CHECK_EQUAL(values[3], res) failed with (5.5, -1)
Group_Permissions test skipped because you are running it as root

Utils_File_dir test skipped because you are running it as root

FAILURE: 4 out of 1066 tests failed (8 out of 13243936 checks failed).
Test time: 3m35s

Everything works as expected in debug mode.

emanuelez avatar Feb 09 '17 12:02 emanuelez

I just tried on with an ubuntu32 box on vagrant and it works fine, both in debug and release mode.

emanuelez avatar Feb 09 '17 13:02 emanuelez