diff --git a/test/dioscc/nonexistent-lib.sh b/test/dioscc/nonexistent-lib.sh index de9ecbef29914d1b34f90c7d8245f7a8e422b4ad..a583784728232d0377ffd98e9171b5bf8c056915 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