From fd9543ece42a8a9071f38fc661d246b17e44db7e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 9 May 2024 13:44:22 +0200 Subject: Add test for fdterm(/dev/null) --- tests/fdstream/driver.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') 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); -- cgit v1.1