Check both failure cases:
- Use a glibc symbol from a version that is too new
- Use a symbol from a library that is not in the allowlist
And also check a conforming binary.
Adding a similar check for Windows PE can be done in a separate PR.
Check both failure cases:
And also check a conforming binary.
Adding a similar check for Windows PE can be done in a separate PR.
26+ # there's no way to do this test for RISC-V at the moment; bionic's libc is 2.27
27+ # and we allow all symbols from 2.27.
28+ if 'riscv' in get_machine(cc):
29+ self.skipTest("test not available for RISC-V")
30+
31+ # emfd_create was introduced in GLIBC 2.27, so is newer than the upper limit of
Check both failure cases:
- Use a glibc symbol from a version that is too new
- Use a symbol from a library that is not in the allowlist
And also check a conforming binary.
Adding a similar check for Windows PE can be done in a separate PR.
I added a test for macOS if you wanted to pull that in as well: fanquake@9e6e59b.
Thanks ! I didn’t mention macOS in the OP because I (mistakenly) thought we only had a symbol check for windows and linux. Good to have a test for that too.
I’ve fixed the comment and cherry-picked that commit.
Labels
Tests
Scripts and tools