test/syscal: Don't skip ClockGettime.CputimeId

We skipped it due to the issue in the golang scheduler
which has been fixed in go1.13.

PiperOrigin-RevId: 283432226
This commit is contained in:
Andrei Vagin
2019-12-02 15:37:17 -08:00
committed by gVisor bot
parent 9194aab2aa
commit b41277049c
-5
View File
@@ -56,11 +56,6 @@ 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
// small number of core because one goroutine starves the others.
printf("CPUS: %d\n", std::thread::hardware_concurrency());
SKIP_IF(std::thread::hardware_concurrency() <= 2);
constexpr int kNumThreads = 13; // arbitrary
absl::Duration spin_time = absl::Seconds(1);