diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-05-09 13:44:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-05-09 13:44:22 +0200 |
commit | fd9543ece42a8a9071f38fc661d246b17e44db7e (patch) | |
tree | a8c6b91c8c248b3e3baf9885d08605156b6ca080 /tests/fdstream | |
parent | af7d705bd288fae70a2525de0fb0349b40797ce2 (diff) |
Add test for fdterm(/dev/null)
Diffstat (limited to 'tests/fdstream')
-rw-r--r-- | tests/fdstream/driver.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/fdstream/driver.cxx b/tests/fdstream/driver.cxx index ec0c54e..d039b00 100644 --- a/tests/fdstream/driver.cxx +++ b/tests/fdstream/driver.cxx @@ -965,6 +965,11 @@ main (int argc, const char* argv[]) } #endif + + // Test fdterm(). + // + assert (!fdterm (fdopen_null ().get ())); // /dev/null is not a terminal. + // Compare fdstream and fstream operations performance. // duration fwd (0); |