File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
lldb/unittests/Host/linux Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,17 @@ TEST_F(HostTest, GetProcessInfo) {
69
69
EXPECT_EQ (HostInfo::GetArchitecture (HostInfo::eArchKindDefault),
70
70
Info.GetArchitecture ());
71
71
// Test timings
72
+ /*
73
+ * This is flaky in the buildbots on all archs
72
74
ASSERT_TRUE(Host::GetProcessInfo(getpid(), Info));
73
75
ProcessInstanceInfo::timespec user_time = Info.GetUserTime();
76
+ static volatile unsigned u = 0;
74
77
for (unsigned i = 0; i < 10'000'000; i++) {
75
- __asm__ __volatile__ ( " " : " +g " (i) : :) ;
78
+ u = i ;
76
79
}
77
80
ASSERT_TRUE(Host::GetProcessInfo(getpid(), Info));
78
81
ProcessInstanceInfo::timespec next_user_time = Info.GetUserTime();
79
82
ASSERT_TRUE(user_time.tv_sec < next_user_time.tv_sec ||
80
83
user_time.tv_usec < next_user_time.tv_usec);
84
+ */
81
85
}
You can’t perform that action at this time.
0 commit comments