D | syscall_unittest.cc | 45 TEST(Syscall, InvalidCallReturnsENOSYS) { in TEST() argument 46 EXPECT_EQ(-ENOSYS, Syscall::InvalidCall()); in TEST() 49 TEST(Syscall, WellKnownEntryPoint) { in TEST() argument 54 EXPECT_NE(Syscall::Call(-1), syscall(-1)); in TEST() 61 EXPECT_EQ(0x80CDu, ((uint16_t*)Syscall::Call(-1))[-1]); // INT 0x80 in TEST() 63 EXPECT_EQ(0x050Fu, ((uint16_t*)Syscall::Call(-1))[-1]); // SYSCALL in TEST() 66 EXPECT_EQ(0xDF00u, ((uint16_t*)Syscall::Call(-1))[-1]); // SWI 0 in TEST() 68 EXPECT_EQ(0xEF000000u, ((uint32_t*)Syscall::Call(-1))[-1]); // SVC 0 in TEST() 72 EXPECT_EQ(0x0cu, (((uint32_t*)Syscall::Call(-1))[-1]) & 0x0000FFFF); in TEST() 74 EXPECT_EQ(0xD4000001u, ((uint32_t*)Syscall::Call(-1))[-1]); // SVC 0 in TEST() [all …]
|