test: fix test-tty-get-color-depth
If getTTYfd()
returns 0, and stdin is not writable (like on Windows), trying to create WriteStream
will fail. This commit fixes that by skipping fd 0.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test