Skip to content

Commit 3d1061a

Browse files
committed
fix actions tests?
1 parent aee2c48 commit 3d1061a

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

fio-stl.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2819,7 +2819,9 @@ FIO_IFUNC uint64_t fio_math_mod_expo64(uint64_t base,
28192819
#endif
28202820
/* Perform sieve prime test - deterministic. */
28212821
FIO_SFUNC bool fio___is_prime_table(size_t n) {
2822-
FIO_ASSERT_DEBUG(n < FIO_PRIME_TABLE_LIMIT);
2822+
FIO_ASSERT_DEBUG(n < FIO_PRIME_TABLE_LIMIT,
2823+
"%zu too big for fio___is_prime_table",
2824+
n);
28232825
uint64_t primes[((FIO_PRIME_TABLE_LIMIT + 63) >> 6)];
28242826
for (size_t i = 0; i < (sizeof(primes) / sizeof(primes[0])); ++i)
28252827
primes[i] = ~(uint64_t)0;

fio-stl/000 core.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2782,7 +2782,9 @@ FIO_IFUNC uint64_t fio_math_mod_expo64(uint64_t base,
27822782
#endif
27832783
/* Perform sieve prime test - deterministic. */
27842784
FIO_SFUNC bool fio___is_prime_table(size_t n) {
2785-
FIO_ASSERT_DEBUG(n < FIO_PRIME_TABLE_LIMIT);
2785+
FIO_ASSERT_DEBUG(n < FIO_PRIME_TABLE_LIMIT,
2786+
"%zu too big for fio___is_prime_table",
2787+
n);
27862788
uint64_t primes[((FIO_PRIME_TABLE_LIMIT + 63) >> 6)];
27872789
for (size_t i = 0; i < (sizeof(primes) / sizeof(primes[0])); ++i)
27882790
primes[i] = ~(uint64_t)0;

tests/test-helpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#define FIO_CORE
66
#include "../fio-stl/include.h"
77

8-
FIO_SFUNC void fio_test_dynamic_types(void);
8+
#include <math.h>
99

1010
FIO_SFUNC uintptr_t fio___dynamic_types_test_tag(uintptr_t i) { return i | 1; }
1111
FIO_SFUNC uintptr_t fio___dynamic_types_test_untag(uintptr_t i) {

0 commit comments

Comments
 (0)