zephyr/tests
Inaky Perez-Gonzalez 2a64fe666a ztest: prints newline after failure message
Most calls to ztest_assert() contain a message with no trailing
newline. So when it fails, we get (eg:):

  starting test - test_multilib

      Assertion failed at multilib.c:19: test_multilib: (c not equal to 323)
  smoke-test failed: wrong multilib selectedFAIL - test_multilib.

when we'd like to get:

  smoke-test failed: wrong multilib selected
  FAIL - test_multilib.

among other things, because it is easier to parse for correctness.

So this patch adds a trailing newline to the message instead of going
around trying to police every call site to do it.

print[kf]() is used vs k_str_out() as we need something that is
available also for unit tests. As this is not in any hot path,
performance wise is not such a big deal.

Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
2018-05-09 09:33:24 -04:00
..
application_development tests: fix doxygen comments 2018-05-07 12:27:07 -04:00
benchmarks tests: fix doxygen comments 2018-05-07 12:27:07 -04:00
bluetooth Bluetooth: shell: Add settings support 2018-05-04 17:26:05 -04:00
boards tests: fix doxygen comments 2018-05-07 12:27:07 -04:00
booting/stub tests/booting/stub: disable banner 2017-12-14 13:11:04 -05:00
compliance
crypto tests: remove duplicate tests 2018-05-07 12:27:07 -04:00
drivers tests: enhance test meta-data/improve test naming 2018-05-07 12:27:07 -04:00
include tests: remove dot after PASS|FAIL 2018-05-08 07:56:18 -04:00
kernel tests: doxygen comment cleanup 2018-05-09 00:32:34 -04:00
lib tests: enhance test meta-data/improve test naming 2018-05-07 12:27:07 -04:00
misc/test_build tests: Added test for UTF-8 characters in Kconfig values 2018-03-21 19:11:19 -04:00
net tests: rename main test to main.c 2018-05-07 12:27:07 -04:00
posix tests: posix: mqueue remove extra printk 2018-04-25 14:18:15 +05:30
power tests/samples: add hw dependencies 2018-05-01 19:10:27 -04:00
shell tests: cleanup subsystem tests meta-data 2018-04-09 22:55:20 -04:00
subsys tests: subsys: fs: Add test for FAT FS dual instance case 2018-05-08 08:53:01 -04:00
unit scripts: gen_kobject_list: Generate enums and case statements 2018-04-26 02:57:12 +05:30
ztest ztest: prints newline after failure message 2018-05-09 09:33:24 -04:00
CMakeLists.txt tests: add CONFIG_TEST for marking tests 2018-01-08 10:03:57 -05:00
Kconfig tests: Kconfig: Added a new kconfig. 2018-03-19 18:16:58 -04:00