mirror of
https://github.com/restic/restic.git
synced 2025-12-03 22:01:46 +00:00
Add more error handling
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user