Skip to content

Commit 478074a

Browse files
authored
Fix test coverage (#1267)
[Test coverage action is failing](https://github.com/hazelcast/hazelcast-cpp-client/actions/workflows/coverage-report.yaml) due to: ``` geninfo: ERROR: Unexpected negative count '-1' for /home/runner/work/hazelcast-cpp-client/hazelcast-cpp-client/hazelcast/generated-sources/src/hazelcast/client/protocol/codec/codecs.cpp:145. Perhaps you need to compile with '-fprofile-update=atomic (use "geninfo --ignore-errors negative ..." to bypass this error) ``` Added suggested compilation flag. ✅ Tested [here](https://github.com/hazelcast/hazelcast-cpp-client/actions/runs/13517945070/job/37770555102).
1 parent 0005f70 commit 478074a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build-unix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set -e
1919

2020
# add compiler flags necessary for test coverage
2121
if [ "$COVERAGE" = "ON" ]; then
22-
CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage -fPIC -O0"
22+
CXXFLAGS="$CXXFLAGS -fprofile-arcs -fprofile-update=atomic -ftest-coverage -fPIC -O0"
2323
fi
2424

2525
# set -m32 or -m64 if a BIT_VERSION is given

0 commit comments

Comments
 (0)