test: Disable blank_stack_side_effects() on non-Hurd systems

This code was added to cope with Hurd specific behavior, but it is
causing flakiness on containers on some Linux systems. Only enable
it where it is currently needed to try to get stability back on CI
systems.

Closes: #14
This commit is contained in:
Guillem Jover 2023-04-05 00:01:42 +02:00
parent ca3db5e134
commit 07192b31e3

View File

@ -138,7 +138,7 @@ populate_secret(char *buf, ssize_t len)
static void __attribute__((__noinline__))
blank_stack_side_effects(char *buf, size_t len)
{
#ifndef __SANITIZE_ADDRESS__
#if defined(__GNU__) && !defined(__SANITIZE_ADDRESS__)
char scratch[SECRETBYTES * 4];
/* If the read(3) in populate_secret() wrote into the stack, as it