From a4d9bc7550cd5569061753cc6f0d62c73848b811 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Sat, 5 Feb 2022 12:08:24 +0900 Subject: [PATCH] Fix CI --- test/elf/warn-once.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/elf/warn-once.sh b/test/elf/warn-once.sh index 325c4fc35e..5f7c7bcf42 100755 --- a/test/elf/warn-once.sh +++ b/test/elf/warn-once.sh @@ -10,21 +10,19 @@ mold="$(pwd)/mold" t=out/test/elf/$testname mkdir -p $t -cat <& $t/log1 -$CC -B. -o $t/exe $t/a.o $t/b.o -Wl,--warn-unresolved-symbols,--warn-once >& $t/log2 +$CC -B. -o $t/exe $t/a.o $t/b.o -Wl,--warn-unresolved-symbols,--warn-once >& $t/log -[ "$(grep 'undefined symbol:.* foo$' $t/log1 | wc -l)" = 2 ] -[ "$(grep 'undefined symbol:.* foo$' $t/log2 | wc -l)" = 1 ] +[ "$(grep 'undefined symbol:.* foo$' $t/log | wc -l)" = 1 ] echo OK