Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ jobs:
shell: bash
run: |
cd build
# On ubuntu we need to modify memlock limit to allow tests to run
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
sudo prlimit --memlock=unlimited --pid=$$
fi
# On macOS, sudo is required to run tests due to LAN access permissions
if [[ "${{ matrix.os }}" == "macos-latest" ]]; then
sudo ctest -C ${{ matrix.build_type }} --output-on-failure
Expand Down
2 changes: 1 addition & 1 deletion tests/universal/network/pub_sub.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class SHMAllocator {
const auto len = strlen(data);
auto alloc_result = provider.alloc_gc_defrag_blocking(len, AllocAlignment({0}));
ZShmMut&& buf = std::get<ZShmMut>(std::move(alloc_result));
memcpy(buf.data(), data, len + 1);
memcpy(buf.data(), data, len);
return Bytes(std::move(buf));
}
};
Expand Down