Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
Checking if passing empty buffor as stdin will fix the epoll eperm error
Browse files Browse the repository at this point in the history
  • Loading branch information
cardil committed Mar 25, 2024
1 parent 6898646 commit 7496084
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/project_build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package tests_test

import (
"bytes"
"fmt"
"os"
"os/exec"
Expand Down Expand Up @@ -30,6 +31,8 @@ func execCmd(tb testing.TB, dir, name string, args ...string) {
"GOTRACEBACK=all",
)
c.Dir = dir
buf := bytes.NewBufferString("")
c.Stdin = buf
c.Stdout = os.Stdout
c.Stderr = os.Stderr
assert.NilError(tb, c.Start())
Expand Down

0 comments on commit 7496084

Please sign in to comment.