]> sigrok.org Git - libsigrok.git/commit
tests: also cover endianess conversion helpers
authorGerhard Sittig <redacted>
Sun, 10 May 2020 20:37:29 +0000 (22:37 +0200)
committerGerhard Sittig <redacted>
Fri, 29 May 2020 04:09:47 +0000 (06:09 +0200)
commitf2a9a7c2c8a5fe18b2bb8dcfbfba109c8356b526
tree0a1136d44fcc4f01eaadb7ad32a9fb7986b0f59e
parent883db4dad1d37a0dbf8174e7559e2681f09d987c
tests: also cover endianess conversion helpers

Introduce a new tests/conv.c source file which exercises the endianess
conversion macros. It's assumed that some use cases may break their
operation, fortunately these edge cases were not seen before, or the
unreliable operation went unnoticed. This test raises awareness of the
implementation's constraints.

This is a start, the test sequence will benefit from adding some more
cases to increase coverage.
Makefile.am
tests/conv.c [new file with mode: 0644]
tests/lib.h
tests/main.c