diff options
author | Andrew Kaster <akaster@serenityos.org> | 2021-06-27 21:16:21 -0600 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-06-30 08:18:28 +0430 |
commit | 44a6715584a7bafe6b9b2601d1d44a238dce948c (patch) | |
tree | c06a15e9467ce498d7beeab8fed380857a4b217f /Userland/Libraries/LibTest/TestRunner.h | |
parent | 5e8a0c014e99d69d4a64e91f50a006147c47cc80 (diff) | |
download | serenity-44a6715584a7bafe6b9b2601d1d44a238dce948c.zip |
Tests: TestProcFs cannot assume stdin/stdout/stderr are the same
If someone runs the test with shell redirection going on, or in a way
that changes any of the standard file descriptors this assumption will
not hold. When running from a terminal normally, it is true however.
Instead, check that /proc/self/fd/[0,1,2] are symlinks, and can be
stat-d by verifying that both stat and lstat succeed, and give different
struct stat contents.
Diffstat (limited to 'Userland/Libraries/LibTest/TestRunner.h')
0 files changed, 0 insertions, 0 deletions