[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unistr/u8-strstr tests: Avoid test failure with ASAN
From: |
Simon Josefsson |
Subject: |
Re: unistr/u8-strstr tests: Avoid test failure with ASAN |
Date: |
Thu, 09 May 2024 16:51:35 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Bruno Haible <bruno@clisp.org> writes:
> + int alarm_value = 50;
> signal (SIGALRM, SIG_DFL);
> - alarm (10);
> + alarm (alarm_value);
Nice trick, but doesn't the compiler optimize away this? Maybe a
'volatile' is needed.
/Simon
signature.asc
Description: PGP signature