mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
sodium_utils{2,3} are not worth running in benchmarks
This commit is contained in:
@@ -49,6 +49,10 @@ main(void)
|
||||
size_t size;
|
||||
unsigned int i;
|
||||
|
||||
#ifdef BENCHMARKS
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
if (sodium_malloc(SIZE_MAX - 1U) != NULL) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -44,6 +44,10 @@ main(void)
|
||||
void * buf;
|
||||
size_t size;
|
||||
|
||||
#ifdef BENCHMARKS
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
#ifdef SIG_DFL
|
||||
# ifdef SIGSEGV
|
||||
signal(SIGSEGV, segv_handler);
|
||||
|
||||
Reference in New Issue
Block a user