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" @@ -197,6 +198,8 @@ EXPECT_EQ(str_end - just_space_and_sign, ptrdiff_t(0)); } + // This test is excessively slow on the GPU so we disable it there. +#if !defined(LIBC_TARGET_ARCH_IS_GPU) void DecodeInOtherBases(FunctionT func) { char small_string[4] = {'\0', '\0', '\0', '\0'}; for (int base = 2; base <= 36; ++base) { @@ -292,6 +295,7 @@ } } } +#endif void CleanBaseSixteenDecode(FunctionT func) { char *str_end = nullptr;