Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2021-03-03 17:37:52 +0300
committerPetr Štetiar <ynezz@true.cz>2021-03-03 20:26:52 +0300
commit4d8995e91d56ee7629842afee2194bfe4c89854c (patch)
tree744fef22b6d2b561efb92131c013a7a2a8aecf5b
parent870acee325fe61267ac4ec1f0c6cba80b954cce5 (diff)
tests: cram: test_base64: really fix failing tests
Remove the checks for 'Aborted (core dumped)' message altogether as it's not reliable and not portable. References: https://gitlab.com/openwrt/project/libubox/-/jobs/1070226897 Signed-off-by: Petr Štetiar <ynezz@true.cz>
-rw-r--r--tests/cram/test_base64.t10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/cram/test_base64.t b/tests/cram/test_base64.t
index 8c52458..b028ac8 100644
--- a/tests/cram/test_base64.t
+++ b/tests/cram/test_base64.t
@@ -38,20 +38,16 @@ check that base64 is producing expected results:
check that b64_encode and b64_decode assert invalid input
- $ alias check="egrep '(dumped|Assertion)' output.log | sed 's;.*\(b64_.*code\).*\(Assertion.*$\);\1: \2;' | LC_ALL=C sort"
+ $ alias check="grep Assertion output.log | sed 's;.*\(b64_.*code\).*\(Assertion.*$\);\1: \2;' | LC_ALL=C sort"
- $ test-b64_decode 2> output.log; check
- Aborted (core dumped)
+ $ test-b64_decode > output.log 2>&1; check
b64_decode: Assertion `dest && targsize > 0' failed.
- $ test-b64_encode 2> output.log; check
- Aborted (core dumped)
+ $ test-b64_encode > output.log 2>&1; check
b64_encode: Assertion `dest && targsize > 0' failed.
$ test-b64_decode-san > output.log 2>&1; check
- Aborted (core dumped)
b64_decode: Assertion `dest && targsize > 0' failed.
$ test-b64_encode-san > output.log 2>&1; check
- Aborted (core dumped)
b64_encode: Assertion `dest && targsize > 0' failed.