From 870acee325fe61267ac4ec1f0c6cba80b954cce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0tetiar?= Date: Wed, 3 Mar 2021 13:49:27 +0100 Subject: tests: cram: test_base64: fix failing tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Seems like latest version of llvm compiler/sanitizer has changed behaviour during crash so `Aborted (core dumped)` is now printed to stdout. Fixes following issue: --- /builds/openwrt/project/libubox/tests/cram/test_base64.t +++ /builds/openwrt/project/libubox/tests/cram/test_base64.t.err @@ -49,9 +49,7 @@ b64_encode: Assertion `dest && targsize > 0' failed. $ test-b64_decode-san 2> output.log; check - Aborted (core dumped) b64_decode: Assertion `dest && targsize > 0' failed. $ test-b64_encode-san 2> output.log; check - Aborted (core dumped) b64_encode: Assertion `dest && targsize > 0' failed. References: https://gitlab.com/openwrt/project/libubox/-/jobs/1069840314 Signed-off-by: Petr Štetiar --- tests/cram/test_base64.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cram/test_base64.t b/tests/cram/test_base64.t index ade41fb..8c52458 100644 --- a/tests/cram/test_base64.t +++ b/tests/cram/test_base64.t @@ -48,10 +48,10 @@ check that b64_encode and b64_decode assert invalid input Aborted (core dumped) b64_encode: Assertion `dest && targsize > 0' failed. - $ test-b64_decode-san 2> output.log; check + $ test-b64_decode-san > output.log 2>&1; check Aborted (core dumped) b64_decode: Assertion `dest && targsize > 0' failed. - $ test-b64_encode-san 2> output.log; check + $ test-b64_encode-san > output.log 2>&1; check Aborted (core dumped) b64_encode: Assertion `dest && targsize > 0' failed. -- cgit v1.2.3