Skip to content

Fixes for bitfield unit tests

[email protected] dm-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3multipath-tools tests: fix bitfield tests for small fieldstests/util.c+81 -230 replies
2/3multipath-tools tests: fix bitfield tests for big endiantests/util.c+19 -30 replies
3/3multipath-tools tests: fix small bitfield tests for big endiantests/util.c+40 -200 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBenjamin Marzinski
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Fixes for bitfield unit tests

From: Martin Wilck <[email protected]>

Hi Christophe, hi Ben,

embarassingly, it turns out that my unit test code for the bitfield code was broken in various ways, which at the same time shows that I didn't test this as broadly as I should have before submitting. The good news is that only the test code was broken, not the implementation itself.

With these fixes, I successfully compiled it on both little and big endian architectures, with and without glibc 2.27.
(https://build.opensuse.org/package/show/Base:System/multipath-tools)

Regards,
Martin

Martin Wilck (3):
multipath-tools tests: fix bitfield tests for small fields multipath-tools tests: fix bitfield tests for big endian multipath-tools tests: fix small bitfield tests for big endian

 tests/util.c | 146 ++++++++++++++++++++++++++++++++++++++++++---------
 1 file changed, 120 insertions(+), 26 deletions(-)
Signature · 1 line
2.28.0