aboutsummaryrefslogtreecommitdiff
path: root/tests/fdstream
diff options
context:
space:
mode:
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);