Skip to content

Commit 073fffd

Browse files
committed
Provide a stub aeabi.read_tp on other archs
Using "#if defined(...)" inside the test body seems to be the convention. Bug: none Test: bionic-unit-tests Change-Id: Icb348a1184e630c5e199129bbe2090fd1e490fa5
1 parent 2e72417 commit 073fffd

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/__aeabi_read_tp_test.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@
3232

3333
#if defined(__arm__)
3434
extern "C" void* __aeabi_read_tp();
35+
#endif
36+
3537
TEST(aeabi, read_tp) {
38+
#if defined(__arm__)
3639
ASSERT_EQ(__aeabi_read_tp(), static_cast<void*>(__get_tls()));
37-
}
40+
#else
41+
GTEST_LOG_(INFO) << "__aeabi_read_tp is only available on arm32.\n";
3842
#endif
43+
}

0 commit comments

Comments
 (0)