libmodes icon indicating copy to clipboard operation
libmodes copied to clipboard

a few fixes in test.c

Open Vigeant opened this issue 5 years ago • 1 comments

  • added a missing include,
  • allocate enough room for a null byte on the heap for msg (the first test failed on my system)
  • initialize the msg heap chunk with null bytes.

Vigeant avatar May 04 '20 19:05 Vigeant

I confirm that the test fails on Raspberry Pi unless this patch https://github.com/watson/libmodes/pull/4/commits/b6eab95a2536294aba9e5d7d64e01f1224eb3fcf is applied.

pi@raspberrypi:/run/tmp/libmodes $ ./tests/test  dump.bin
validating message #1
test: tests/test.c:87: test: Assertion `strcmp(msg, messages[msgNo++]) == 0' failed.
Aborted

lyusupov avatar May 01 '21 07:05 lyusupov