aboutsummaryrefslogtreecommitdiff
path: root/tests/fdstream
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-05-09 13:44:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-05-09 13:44:22 +0200
commitfd9543ece42a8a9071f38fc661d246b17e44db7e (patch)
treea8c6b91c8c248b3e3baf9885d08605156b6ca080 /tests/fdstream
parentaf7d705bd288fae70a2525de0fb0349b40797ce2 (diff)
Add test for fdterm(/dev/null)
Diffstat (limited to 'tests/fdstream')
-rw-r--r--tests/fdstream/driver.cxx5
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);