diff --git a/libc/test/src/stdlib/StrtolTest.h b/libc/test/src/stdlib/StrtolTest.h --- a/libc/test/src/stdlib/StrtolTest.h +++ b/libc/test/src/stdlib/StrtolTest.h @@ -8,6 +8,7 @@ #include "src/__support/CPP/limits.h" #include "src/__support/CPP/type_traits.h" +#include "src/__support/macros/properties/architectures.h" #include "src/errno/libc_errno.h" #include "test/UnitTest/Test.h" @@ -198,6 +199,8 @@ } void DecodeInOtherBases(FunctionT func) { + // This test is excessively slow on the GPU so we disable it there. +#if !defined(LIBC_TARGET_ARCH_IS_GPU) char small_string[4] = {'\0', '\0', '\0', '\0'}; for (int base = 2; base <= 36; ++base) { for (int first_digit = 0; first_digit <= 36; ++first_digit) { @@ -291,6 +294,7 @@ } } } +#endif } void CleanBaseSixteenDecode(FunctionT func) {