Skip to content

Commit 13e9825

Browse files
committed
this test is flakey on arm in linux because I got too clever
1 parent 4681079 commit 13e9825

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/unittests/Host/linux/HostTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ TEST_F(HostTest, GetProcessInfo) {
7171
// Test timings
7272
ASSERT_TRUE(Host::GetProcessInfo(getpid(), Info));
7373
ProcessInstanceInfo::timespec user_time = Info.GetUserTime();
74+
static volatile unsigned u = 0;
7475
for (unsigned i = 0; i < 10'000'000; i++) {
75-
__asm__ __volatile__("" : "+g"(i) : :);
76+
u = i;
7677
}
7778
ASSERT_TRUE(Host::GetProcessInfo(getpid(), Info));
7879
ProcessInstanceInfo::timespec next_user_time = Info.GetUserTime();

0 commit comments

Comments
 (0)