]> granicus.if.org Git - esp-idf/commit
unity: flush test name before starting the test, use printf everywhere
authorIvan Grokhotkov <ivan@espressif.com>
Thu, 26 Apr 2018 08:47:35 +0000 (16:47 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Thu, 26 Apr 2018 10:52:45 +0000 (18:52 +0800)
commitc61c2a63d0aa914098fd828a8e5a305cddd5261d
treeaf18c787126283eaf8b1e113d15dcef609889e84
parent4ba19abeb690b7fd276b6ed9721c538dd54bfda3
unity: flush test name before starting the test, use printf everywhere

Unit test runner expects to see the test name echoed after test
selection is made. If the unit test immediately goes into sleep mode,
UART output will not be complete, and test runner will not see the
test name. This flushes the stream buffer and waits for UART FIFO to
be empty before starting the test.

Additionally some parts of code used unity_printf and some used
printf. Since unity_printf was only useful during very early tests
when newlib was not available, replace all its usages with printf.
tools/unit-test-app/components/unity/unity_platform.c