aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-07-19 22:11:52 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2018-07-20 14:02:21 +0000
commit1504211fdcceb86bb76c19564e8b0b72a7cc2f6f (patch)
treeb5e77e4e7c2c932817876b26890789d769454e64
parent6979c547933901b21dab28e2c08fd4cc730f9860 (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
-rw-r--r--tests/Makefile.am2
-rw-r--r--tests/testsuite.at3
-rw-r--r--tests/utils/utils_test.err0
3 files changed, 3 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index db4e520..eaaa8df 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 15a89b6..43b58e8 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 0000000..e69de29
--- /dev/null
+++ b/tests/utils/utils_test.err