Skip to content

Commit

Permalink
bingrep: improve test (#125477)
Browse files Browse the repository at this point in the history
The test could time out due to the huge output size. Try with a simpler
binary instead.
  • Loading branch information
ZhongRuoyu committed Mar 13, 2023
1 parent 2da654c commit f7a21e8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Formula/bingrep.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ def install
end

test do
system bin/"bingrep", bin/"bingrep"
(testpath/"test.c").write <<~EOS
int homebrew_test() {
return 0;
}
int main() {
return homebrew_test();
}
EOS
system ENV.cc, testpath/"test.c"
assert_match "homebrew_test", shell_output("#{bin}/bingrep a.out")
end
end

0 comments on commit f7a21e8

Please sign in to comment.