Skip to content

Arduino Tests & Error Corrections#11

Open
pschatzmann wants to merge 4 commits intofrejoel:masterfrom
pschatzmann:master
Open

Arduino Tests & Error Corrections#11
pschatzmann wants to merge 4 commits intofrejoel:masterfrom
pschatzmann:master

Conversation

@pschatzmann
Copy link
Copy Markdown
Contributor

@pschatzmann pschatzmann commented Sep 13, 2023

Unit Tests

  • I added the functionality for unit tests in Arduino in examples/TestsArduino: For this I made all the methods in test.h static to prevent linker errors. Maybe a cleaner solution would have been to split things up into a proper test.c and use the test.h only for the method declarations.
  • The tests have extended to cover the handling of uninitialized memory by replacing tsd_context_init with a custom test_context_init. By default this is deactivated!
  • The tests have been extended to cover the execution of the callbacks in [set_event_callback.c] to cover and demonstrate callback not called on ESP32 microcontroller #10

It includes 2 corrections to tsdemux.c taddressing #10

  • calling calloc instread of malloc
  • calling ctx->free instead of free

@pschatzmann pschatzmann force-pushed the master branch 3 times, most recently from e758767 to d14622d Compare September 19, 2023 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant