aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/builtin/buildfile2
-rw-r--r--tests/fdstream/buildfile2
-rw-r--r--tests/fdstream/driver.cxx5
3 files changed, 7 insertions, 2 deletions
diff --git a/tests/builtin/buildfile b/tests/builtin/buildfile
index 8d22fe4..2f23ab2 100644
--- a/tests/builtin/buildfile
+++ b/tests/builtin/buildfile
@@ -8,4 +8,4 @@ import libs = libbutl%lib{butl}
exe{driver}: {hxx cxx}{*} $libs testscript{*}
if ($cxx.target.class != 'windows')
- cxx.libs += -lpthread
+ cxx.libs += -pthread
diff --git a/tests/fdstream/buildfile b/tests/fdstream/buildfile
index ee90324..27f6cbe 100644
--- a/tests/fdstream/buildfile
+++ b/tests/fdstream/buildfile
@@ -6,4 +6,4 @@ import libs = libbutl%lib{butl}
exe{driver}: {hxx cxx}{*} $libs
if ($cxx.target.class != "windows")
- cxx.libs += -lpthread
+ cxx.libs += -pthread
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);