summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2019-04-29 18:40:51 -0700
committerShentubot <shentubot@google.com>2019-04-29 18:41:54 -0700
commit2843f2a956f5ef23e621f571f5c3e6a1e4a8223a (patch)
tree307172bc5970a2258c47ca846adf18efbf99b3b3 /test/syscalls
parentddab854b9a895603664fa4abfa525f6a29047083 (diff)
Skip flaky ClockGettime.CputimeId
Test times out when it runs on a single core. Skip until the bug in the Go runtime is fixed. PiperOrigin-RevId: 245866466 Change-Id: Ic3e72131c27136d58b71f6b11acc78abf55895d4
Diffstat (limited to 'test/syscalls')
-rw-r--r--test/syscalls/linux/clock_gettime.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/syscalls/linux/clock_gettime.cc b/test/syscalls/linux/clock_gettime.cc
index 082ae1c39..4c8ca1088 100644
--- a/test/syscalls/linux/clock_gettime.cc
+++ b/test/syscalls/linux/clock_gettime.cc
@@ -55,6 +55,10 @@ void spin_ns(int64_t ns) {
// Test that CLOCK_PROCESS_CPUTIME_ID is a superset of CLOCK_THREAD_CPUTIME_ID.
TEST(ClockGettime, CputimeId) {
+ // TODO(b/128871825,golang.org/issue/10958): Test times out when there is a
+ // single core because one goroutine starves the others.
+ SKIP_IF(std::thread::hardware_concurrency() == 1);
+
constexpr int kNumThreads = 13; // arbitrary
absl::Duration spin_time = absl::Seconds(1);