Add more error handling
This commit is contained in:
parent
aef3658a5f
commit
0858fbf6aa
23 changed files with 91 additions and 36 deletions
|
@ -12,8 +12,9 @@ func TestIsProcessBackground(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Skipf("can't open terminal: %v", err)
|
||||
}
|
||||
defer tty.Close()
|
||||
|
||||
_, err = isProcessBackground(tty.Fd())
|
||||
rtest.OK(t, err)
|
||||
|
||||
_ = tty.Close()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue