diff options
Diffstat (limited to 'ui/terminal/status_test.go')
-rw-r--r-- | ui/terminal/status_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/terminal/status_test.go b/ui/terminal/status_test.go index a87a7f07..106d6515 100644 --- a/ui/terminal/status_test.go +++ b/ui/terminal/status_test.go @@ -17,6 +17,7 @@ package terminal import ( "bytes" "fmt" + "syscall" "testing" "android/soong/ui/status" @@ -252,6 +253,8 @@ func actionWithOuptutWithAnsiCodes(stat status.StatusOutput) { func TestSmartStatusOutputWidthChange(t *testing.T) { smart := &fakeSmartTerminal{termWidth: 40} stat := NewStatusOutput(smart, "", false) + smartStat := stat.(*smartStatusOutput) + smartStat.sigwinchHandled = make(chan bool) runner := newRunner(stat, 2) @@ -260,6 +263,9 @@ func TestSmartStatusOutputWidthChange(t *testing.T) { runner.startAction(action) smart.termWidth = 30 + // Fake a SIGWINCH + smartStat.sigwinch <- syscall.SIGWINCH + <-smartStat.sigwinchHandled runner.finishAction(result) stat.Flush() |