mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user