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

Fix unit test compilation in CI #968

Merged
merged 1 commit into from
Nov 30, 2021
Merged

Fix unit test compilation in CI #968

merged 1 commit into from
Nov 30, 2021

Conversation

lalitb
Copy link
Contributor

@lalitb lalitb commented Nov 30, 2021

Unit test compilation is failing with error
/home/runner/work/cpp_client_telemetry/cpp_client_telemetry/tests/unittests/InformationProviderImplTests.cpp:30:9: error: ‘GetCallbacks’ function uses ‘auto’ type specifier without trailing return type 30 | const auto& GetCallbacks() { return callbacks; } | ^~~~~ /home/runner/work/cpp_client_telemetry/cpp_client_telemetry/tests/unittests/InformationProviderImplTests.cpp:30:9: note: deduced return type only available with ‘-std=c++14’ or ‘-std=gnu++14’ make[2]: *** [tests/unittests/CMakeFiles/UnitTests.dir/build.make:398: tests/unittests/CMakeFiles/UnitTests.dir/InformationProviderImplTests.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:219: tests/unittests/CMakeFiles/UnitTests.dir/all] Error 2

1DS SDK should compile successfully with compilers with C++11 support, while the auto return type "without trailing return type" used in the unit-test is a C++14 feature.
Looks like the error surfaced out after some recent changes in the github environments.

@lalitb lalitb merged commit dea7d62 into main Nov 30, 2021
@lalitb lalitb deleted the labhasfix-unit-test branch November 30, 2021 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants