diff --git a/Formula/g/goplus.rb b/Formula/g/goplus.rb index b185c235b7b2..24e37783c631 100644 --- a/Formula/g/goplus.rb +++ b/Formula/g/goplus.rb @@ -42,7 +42,7 @@ def install assert_equal "v#{version}", shell_output("#{bin}/gop env GOPVERSION").chomp system bin/"gop", "fmt", "hello.gop" - assert_equal "Hello World\n", shell_output("#{bin}/gop run hello.gop") + assert_equal "Hello World\n", shell_output("#{bin}/gop run hello.gop 2>&1") (testpath/"go.mod").write <<~GOMOD module hello @@ -50,6 +50,6 @@ module hello system "go", "get", "github.com/goplus/gop/builtin" system bin/"gop", "build", "-o", "hello" - assert_equal "Hello World\n", shell_output("./hello") + assert_equal "Hello World\n", shell_output("./hello 2>&1") end end