mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
wrap dragonfly_test with gdb inside a CI (#2050)
chore: run dragonfly_test with epoll under gdb Also, update helio that provide a stacktrace under musl libc (alpine linux). This version of helio updates absl version as well. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
2cb7d30603
commit
d9cb7453fb
6 changed files with 22 additions and 16 deletions
|
@ -192,18 +192,16 @@ template <typename RandGen> std::string GetRandomHex(RandGen& gen, size_t len) {
|
|||
size_t indx = 0;
|
||||
|
||||
for (size_t i = 0; i < len / 16; ++i) { // 2 chars per byte
|
||||
absl::AlphaNum an(absl::Hex(gen(), absl::kZeroPad16));
|
||||
|
||||
for (unsigned j = 0; j < 16; ++j) {
|
||||
res[indx++] = an.Piece()[j];
|
||||
}
|
||||
absl::numbers_internal::FastHexToBufferZeroPad16(gen(), res.data() + indx);
|
||||
indx += 16;
|
||||
}
|
||||
|
||||
if (indx < res.size()) {
|
||||
absl::AlphaNum an(absl::Hex(gen(), absl::kZeroPad16));
|
||||
char buf[32];
|
||||
absl::numbers_internal::FastHexToBufferZeroPad16(gen(), buf);
|
||||
|
||||
for (unsigned j = 0; indx < res.size(); indx++, j++) {
|
||||
res[indx] = an.Piece()[j];
|
||||
res[indx] = buf[j];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue