Skip to content

tests: wrap ADD_SYSCALL for getrandom in test for SYS_getrandom

Andy Bailey requested to merge bailey3/gnutls:gnutls-703 into master

Closes #703 (closed)

On linux systems without __NR_getrandom, the ADD_SYSCALL(getrandom, 0) in tests/seccomp.c will result in a link failure later, so test for SYS_getrandom first. This was the fix recommended by @nmav, thanks!

Checklist

  • Code modified for feature
  • [NA] Test suite updated with functionality tests
  • [NA] Test suite updated with negative tests
  • [NA] Documentation updated / NEWS entry present (for non-trivial changes)

Reviewer's checklist:

  • Any issues marked for closing are addressed
  • There is a test suite reasonably covering new functionality or modifications
  • Function naming, parameters, return values, types, etc., are consistent and according to CONTRIBUTION.md
  • This feature/change has adequate documentation added
  • No obvious mistakes in the code
Edited by Tim Rühsen

Merge request reports