Merge "Fix personality test for mips32r6"

This commit is contained in:
Elliott Hughes 2015-12-14 15:59:29 +00:00 committed by Gerrit Code Review
commit 162a8524ea

View File

@ -21,7 +21,9 @@
TEST(sys_personality, current_persona) {
int persona = personality(0xffffffff) & PER_MASK;
#if defined(__BIONIC__)
#if defined(__LP64__)
// When personality syscall is executed on mips64, for a 32bit process
// sys_32_personality() is called, which converts PER_LINUX32 -> PER_LINUX
#if defined(__LP64__) || (__mips==32 && __mips_isa_rev>2)
ASSERT_EQ(PER_LINUX, persona);
#else
ASSERT_EQ(PER_LINUX32, persona);