Skip to content

Commit 9842726

Browse files
authored
this test is flakey on arm in linux because I got too clever (llvm#89267)
the assembly jazz doesn't work on arm. oops
1 parent 74e07ab commit 9842726

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lldb/unittests/Host/linux/HostTest.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,17 @@ TEST_F(HostTest, GetProcessInfo) {
6969
EXPECT_EQ(HostInfo::GetArchitecture(HostInfo::eArchKindDefault),
7070
Info.GetArchitecture());
7171
// Test timings
72+
/*
73+
* This is flaky in the buildbots on all archs
7274
ASSERT_TRUE(Host::GetProcessInfo(getpid(), Info));
7375
ProcessInstanceInfo::timespec user_time = Info.GetUserTime();
76+
static volatile unsigned u = 0;
7477
for (unsigned i = 0; i < 10'000'000; i++) {
75-
__asm__ __volatile__("" : "+g"(i) : :);
78+
u = i;
7679
}
7780
ASSERT_TRUE(Host::GetProcessInfo(getpid(), Info));
7881
ProcessInstanceInfo::timespec next_user_time = Info.GetUserTime();
7982
ASSERT_TRUE(user_time.tv_sec < next_user_time.tv_sec ||
8083
user_time.tv_usec < next_user_time.tv_usec);
84+
*/
8185
}

0 commit comments

Comments
 (0)