From 9f9cae8b9bb593a58d413d269908fab43c7b0fc3 Mon Sep 17 00:00:00 2001
From: Zuzana Baranova <xbaranov@fi.muni.cz>
Date: Sat, 29 Jun 2019 11:06:21 +0000
Subject: [PATCH] test: Check for both lld and ld error messages with
 nonexistent library.

---
 test/dioscc/nonexistent-lib.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/dioscc/nonexistent-lib.sh b/test/dioscc/nonexistent-lib.sh
index de9ecbef2..a58378472 100644
--- a/test/dioscc/nonexistent-lib.sh
+++ b/test/dioscc/nonexistent-lib.sh
@@ -8,7 +8,8 @@ EOF
 
 not dioscc prog.c -lxxx 2>&1 | tee file.txt
 
-grep "unable to find library -lxxx" file.txt
-grep "lld failed, not linked" file.txt
+# lld | ld  error message
+egrep "unable to find library -lxxx|cannot find -lxxx" file.txt
+egrep "lld failed, not linked|failed to link, ld exited with exitcode" file.txt
 
 test ! -s a.out
-- 
GitLab