Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test failed on MacOS 11.6.1 #12104

Closed
ghost opened this issue Nov 22, 2021 · 2 comments
Closed

Unit test failed on MacOS 11.6.1 #12104

ghost opened this issue Nov 22, 2021 · 2 comments
Labels
bug Something isn't working stale Stale issue or PR V1.X

Comments

@ghost
Copy link

ghost commented Nov 22, 2021

Problem

I want to build and run the host application and followed the build instruction. But the unit test failed on my side.

The machine is a MacBook Air with Intel Core i-5 cpu, running MacOS 11.6.1 Big Sur.

This is my error message:

jiankuang@Jians-Air connectedhomeip % ninja -C out/host check
ninja: Entering directory `out/host'
[4/160] ACTION //src/app/tests:TestDataModelSerialization_run(//build/toolchain/host:mac_x64_gcc)
FAILED: gen/src/app/tests/TestDataModelSerialization_run.pw_pystamp
python3 ../../third_party/pigweed/repo/pw_build/py/pw_build/python_runner.py --gn-root ../../ --current-path ../../src/app/tests --default-toolchain=//build/toolchain/host:mac_x64_gcc --current-toolchain=//build/toolchain/host:mac_x64_gcc --touch gen/src/app/tests/TestDataModelSerialization_run.pw_pystamp --capture-output -- ../../third_party/pigweed/repo/pw_unit_test/py/pw_unit_test/test_runner.py --runner ../../third_party/pigweed/repo/targets/host/run_test --test tests/TestDataModelSerialization
INF Test 1/1: [ RUN] TestDataModelSerialization
ERR ../../third_party/pigweed/repo/targets/host/run_test exited with status 255
OUT [29249]
'#0:','TestDataModelSerialization'
'#2:','Setup ','PASSED'
'#3:','TestDataModelSerialization_EncAndDecSimple ','PASSED'
'#3:','TestDataModelSerialization_EncAndDecNestedStruct ','PASSED'
'#3:','TestDataModelSerialization_EncAndDecDecodableNestedStructList ','PASSED'
../../src/app/tests/TestDataModelSerialization.cpp:505: assertion failed: "err == CHIP_NO_ERROR"
../../src/app/tests/TestDataModelSerialization.cpp:528: assertion failed: "iter.GetStatus() == CHIP_NO_ERROR"
../../src/app/tests/TestDataModelSerialization.cpp:529: assertion failed: "i == 4"
'#3:','TestDataModelSerialization_EncAndDecDecodableDoubleNestedStructList','FAILED'
'#3:','TestDataModelSerialization_OptionalFields ','PASSED'
'#3:','TestDataModelSerialization_ExtraField ','PASSED'
'#3:','TestDataModelSerialization_InvalidSimpleFieldTypes ','PASSED'
'#3:','TestDataModelSerialization_InvalidListType ','PASSED'
'#3:','TestDataModelSerialization_NullablesOptionalsStruct ','PASSED'
'#3:','TestDataModelSerialization_NullablesOptionalsCommand ','PASSED'
'#4:','Teardown ','PASSED'
'#6:','1','10'
'#7:','3','265'
INF Test 1/1: [FAIL] TestDataModelSerialization
[9/160] ACTION //src/credentials/tests:TestCertificationDeclaration_run(//build/toolchain/host:mac_x64_gcc)
ninja: build stopped: subcommand failed.

And I did get warnings at the end stage of my build:

ld: warning: dylib (/usr/local/Cellar/openssl@3/3.0.0_1/lib/libssl.dylib) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: dylib (/usr/local/Cellar/openssl@3/3.0.0_1/lib/libcrypto.dylib) was built for newer macOS version (11.0) than being linked (10.15)
[919/1019] ld tests/TestSafeInt
ld: warning: dylib (/usr/local/Cellar/openssl@3/3.0.0_1/lib/libssl.dylib) was built for newer macOS version (11.0) than being linked (10.15)

Proposed Solution

None

@ghost ghost changed the title unit test failed on MacOS 11.6.1 Unit test failed on MacOS 11.6.1 Nov 22, 2021
@woody-apple woody-apple added bug Something isn't working V1.X and removed V1.0 labels Jan 25, 2022
@stale
Copy link

stale bot commented Jul 25, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale Stale issue or PR label Jul 25, 2022
@stale
Copy link

stale bot commented Oct 18, 2022

This stale issue has been automatically closed. Thank you for your contributions.

@stale stale bot closed this as completed Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale Stale issue or PR V1.X
Projects
None yet
Development

No branches or pull requests

2 participants