[libc] reset errno in isatty tests
authorMichael Jones <michaelrj@google.com>
Mon, 10 Oct 2022 22:48:18 +0000 (15:48 -0700)
committerMichael Jones <michaelrj@google.com>
Mon, 10 Oct 2022 22:49:48 +0000 (15:49 -0700)
commitaec239cdb885feb98a5bbd7240df0c8b4aac8245
tree720d3ddedfdc81ccdb81cac18471966ebe2d8c9a
parentd325d2b407fcb7f37230b86fb291ef777497137d
[libc] reset errno in isatty tests

Errno wasn't getting reset between tests, causing cascading failures.

Differential Revision: https://reviews.llvm.org/D135627
libc/test/src/unistd/isatty_test.cpp