Merge "Fix personality test for mips32r6"
This commit is contained in:
commit
162a8524ea
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user