On 19/11/20 13:36 +0000, Jonathan Wakely wrote:
On 16/11/20 14:43 -0800, Thomas Rodgers wrote:
This patch looks good to me.
Committed now.
This patch was also needed, but I don't understand why I didn't see
the FAILs on gcc135 in teh cfarm.
Anyway, tested x86_64-linux, committed to trunk.
commit 5e6a43158d2e5b26616716c50badedd3400c6bea
Author: Jonathan Wakely <jwak...@redhat.com>
Date: Thu Nov 19 16:17:33 2020
libstdc++: Add missing header to some tests
These tests use std::this_thread::sleep_for without including <thread>.
libstdc++-v3/ChangeLog:
* testsuite/30_threads/async/async.cc: Include <thread>.
* testsuite/30_threads/future/members/93456.cc: Likewise.
diff --git a/libstdc++-v3/testsuite/30_threads/async/async.cc b/libstdc++-v3/testsuite/30_threads/async/async.cc
index 1c779bfbcad4..b06c2553c952 100644
--- a/libstdc++-v3/testsuite/30_threads/async/async.cc
+++ b/libstdc++-v3/testsuite/30_threads/async/async.cc
@@ -22,6 +22,7 @@
#include <future>
+#include <thread>
#include <testsuite_hooks.h>
using namespace std;
diff --git a/libstdc++-v3/testsuite/30_threads/future/members/93456.cc b/libstdc++-v3/testsuite/30_threads/future/members/93456.cc
index 8d6a5148ce3c..9d1cbcef0013 100644
--- a/libstdc++-v3/testsuite/30_threads/future/members/93456.cc
+++ b/libstdc++-v3/testsuite/30_threads/future/members/93456.cc
@@ -22,6 +22,7 @@
#include <future>
+#include <thread>
#include <chrono>
#include <climits>
#include <testsuite_hooks.h>