diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-07-19 22:11:52 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2018-07-20 14:02:21 +0000 |
commit | 1504211fdcceb86bb76c19564e8b0b72a7cc2f6f (patch) | |
tree | b5e77e4e7c2c932817876b26890789d769454e64 /tests | |
parent | 6979c547933901b21dab28e2c08fd4cc730f9860 (diff) |
utils_test: check stderr to catch sanitizer issues
Recent OS#3407 shows that we should verify stderr to catch sanitizer failures.
(They might not always be ignorable like that one.)
Change-Id: Ic9e437a1cc96ae081e0fd6a9b6e3156987e14c0c
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 2 | ||||
-rw-r--r-- | tests/testsuite.at | 3 | ||||
-rw-r--r-- | tests/utils/utils_test.err | 0 |
3 files changed, 3 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index db4e5203..eaaa8df2 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -240,7 +240,7 @@ EXTRA_DIST = testsuite.at $(srcdir)/package.m4 $(TESTSUITE) \ vty/ok_tabs_and_spaces.cfg \ vty/ok_tabs.cfg \ comp128/comp128_test.ok bits/bitfield_test.ok \ - utils/utils_test.ok stats/stats_test.ok \ + utils/utils_test.ok utils/utils_test.err stats/stats_test.ok \ bitvec/bitvec_test.ok msgb/msgb_test.ok bits/bitcomp_test.ok \ sim/sim_test.ok tlv/tlv_test.ok abis/abis_test.ok \ gsup/gsup_test.ok gsup/gsup_test.err \ diff --git a/tests/testsuite.at b/tests/testsuite.at index 15a89b6d..43b58e8d 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -205,7 +205,8 @@ AT_CLEANUP AT_SETUP([utils]) AT_KEYWORDS([utils]) cat $abs_srcdir/utils/utils_test.ok > expout -AT_CHECK([$abs_top_builddir/tests/utils/utils_test], [0], [expout], [ignore]) +cat $abs_srcdir/utils/utils_test.err > experr +AT_CHECK([$abs_top_builddir/tests/utils/utils_test], [0], [expout], [experr]) AT_CLEANUP AT_SETUP([stats]) diff --git a/tests/utils/utils_test.err b/tests/utils/utils_test.err new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/utils/utils_test.err |