Skip to content
Snippets Groups Projects
Commit 9f9cae8b authored by Zuzana Baranová's avatar Zuzana Baranová
Browse files

test: Check for both lld and ld error messages with nonexistent library.

parent 5abd4efb
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment