From 8ca3b4e5996e37411d866fb5fa1b1a86515aa628 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 13 Oct 2020 21:29:39 +0300 Subject: Fix 'unresolved external symbol' for process::timed_wait(milliseconds) on Windows --- tests/process/driver.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tests/process') diff --git a/tests/process/driver.cxx b/tests/process/driver.cxx index 3be4154..4b5dd16 100644 --- a/tests/process/driver.cxx +++ b/tests/process/driver.cxx @@ -7,6 +7,7 @@ #include #include #include +#include #include #include // istreambuf_iterator, ostream_iterator #include // copy() @@ -25,6 +26,7 @@ import butl.utility; // setenv(), getenv() import butl.process; import butl.optional; import butl.fdstream; +import butl.timestamp; #else #include #include @@ -32,6 +34,7 @@ import butl.fdstream; #include #include #include +#include #endif using namespace std; @@ -164,8 +167,11 @@ exec (const path& p, ifdstream is (bin_mode (move (pr3.in_ofd))); o = is.read_binary (); - r = pr2.wait () && r; - r = pr3.wait () && r; + // While at it, make sure that the process::timed_wait() template + // function overloads can be properly instantiated/linked. + // + r = pr2.timed_wait (duration::max ()) && r; + r = pr3.timed_wait (chrono::milliseconds::max ()) && r; } else { -- cgit v1.1