From aa80cfadff0bb715ca090cbd1b3561a1619251d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Thu, 29 Feb 2024 14:59:25 +0100 Subject: [PATCH] lorder: Tweak invalid file test. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Different implementations of `nm` have different ways of telling you that your file is not a valid object or library, but they all seem to have “not recognized” as a common substring. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D44154 --- usr.bin/lorder/tests/lorder_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/lorder/tests/lorder_test.sh b/usr.bin/lorder/tests/lorder_test.sh index 449cda29f82..a4276b2dcfe 100644 --- a/usr.bin/lorder/tests/lorder_test.sh +++ b/usr.bin/lorder/tests/lorder_test.sh @@ -52,7 +52,7 @@ invalid_head() { } invalid_body() { echo "not an object file" >invalid.o - atf_check -s not-exit:0 -e match:"File format not" -o empty \ + atf_check -s not-exit:0 -e match:"not recognized" -o empty \ lorder invalid.o }