From 1504211fdcceb86bb76c19564e8b0b72a7cc2f6f Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 19 Jul 2018 22:11:52 +0200 Subject: 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 --- tests/Makefile.am | 2 +- tests/testsuite.at | 3 ++- tests/utils/utils_test.err | 0 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 tests/utils/utils_test.err (limited to 'tests') 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 -- cgit v1.2.3