Home | History | Annotate | Download | only in tests

Lines Matching refs:getauxval

21 // getauxval() was only added as of glibc version 2.16.
37 TEST(getauxval, expected_values) {
38 ASSERT_EQ((unsigned long int) 0, getauxval(AT_SECURE));
39 ASSERT_EQ(getuid(), getauxval(AT_UID));
40 ASSERT_EQ(geteuid(), getauxval(AT_EUID));
41 ASSERT_EQ(getgid(), getauxval(AT_GID));
42 ASSERT_EQ(getegid(), getauxval(AT_EGID));
43 ASSERT_EQ((unsigned long int) getpagesize(), getauxval(AT_PAGESZ));
45 ASSERT_NE((unsigned long int) 0, getauxval(AT_PHDR));
46 ASSERT_NE((unsigned long int) 0, getauxval(AT_PHNUM));
47 ASSERT_NE((unsigned long int) 0, getauxval(AT_ENTRY));
48 ASSERT_NE((unsigned long int) 0, getauxval(AT_PAGESZ));
51 TEST(getauxval, unexpected_values) {
52 ASSERT_EQ((unsigned long int) 0, getauxval(0xdeadbeef));