Opened 13 years ago
Closed 13 years ago
#739 closed defect (fixed)
2 tests fail
Reported by: | fabio | Owned by: | |
---|---|---|---|
Priority: | Must Have | Milestone: | Alpha 4 |
Component: | Core engine | Keywords: | |
Cc: | Patch: |
Description
Since two days I am getting this tests failure:
Running 253 tests........................................................................................ In TestSerializer::test_script_basic: ../../../source/simulation2/tests/../../../source/simulation2/tests/test_Serializer.h:276: Error: Expected (std::string(stream.str()) == std::string("script: ({x:123, y:[1, 1.5, \"2\", \"test\", (void 0), null, true, false]})\n")), found ("script: {\n \"x\": 123,\n \"y\": [\n 1,\n 1.5,\n \"2\",\n \"test\",\n null,\n null,\n true,\n false\n ]\n}\n" != "script: ({x:123, y:[1, 1.5, \"2\", \"test\", (void 0), null, true, false]})\n") ....................................ERROR: JavaScript error: cyclic object value ERROR: StringifyJSON failed In TestComponentManager::test_script_serialization: ../../../source/simulation2/tests/../../../source/simulation2/tests/test_ComponentManager.h:677: Error: Expected (std::string(debugStream.str()) == std::string("rng: \"78606\"\n" "entities:\n" "- id: 1\n" " TestScript1_values:\n" " object: ({x:1234, str:\"this is a string\", things:{a:1, b:\"2\", c:[3, \"4\", [5, []]]}})\n" "\n" "- id: 2\n" " TestScript1_entity:\n" " object: ({})\n" "\n" "- id: 3\n" " TestScript1_nontree:\n" " object: ({x:#2=[#1=[2], #1#, #2#, {y:#1#}]})\n" "\n" "- id: 4\n" " TestScript1_custom:\n" " object: ({c:1})\n" "\n")), found ("rng: \"78606\"\nentities:\n- id: 1\n TestScript1_values:\n object: {\n \"x\": 1234,\n \"str\": \"this is a string\",\n \"things\": {\n \"a\": 1,\n \"b\": \"2\",\n \"c\": [\n 3,\n \"4\",\n [\n 5,\n []\n ]\n ]\n }\n}\n\n- id: 2\n TestScript1_entity:\n object: {}\n\n- id: 3\n TestScript1_nontree:\n object: \n\n- id: 4\n TestScript1_custom:\n object: {\n \"c\": 1\n}\n\n" != "rng: \"78606\"\nentities:\n- id: 1\n TestScript1_values:\n object: ({x:1234, str:\"this is a string\", things:{a:1, b:\"2\", c:[3, \"4\", [5, []]]}})\n\n- id: 2\n TestScript1_entity:\n object: ({})\n\n- id: 3\n TestScript1_nontree:\n object: ({x:#2=[#1=[2], #1#, #2#, {y:#1#}]})\n\n- id: 4\n TestScript1_custom:\n object: ({c:1})\n\n") ............................................................................................................................... Failed 2 of 253 tests Success rate: 99%
Note:
See TracTickets
for help on using tickets.
(In [8975]) Fix #739 (test failures). Use JSON in debug serializer output unless it fails due to e.g. cyclic values, in which case use toSource. Disable file stats code by default, since its output isn't used.