From 2b96e8b7a6e75d9006bf2021c89bd94df40b9e97 Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Mon, 11 Sep 2023 12:54:35 +0200 Subject: [PATCH] Restrict GMP OOM tests to platforms with 64-bits longs. --- test/gmp.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/gmp.jl b/test/gmp.jl index bc0620f71f674..8bfe90ec7d9e4 100644 --- a/test/gmp.jl +++ b/test/gmp.jl @@ -11,8 +11,10 @@ ee = typemax(Int64) @test BigInt <: Signed @test big(1) isa Signed - @test_throws OutOfMemoryError big(96608869069402268615522366320733234710)^16374500563449903721 - @test_throws OutOfMemoryError 555555555555555555555555555555555555555555555555555^55555555555555555 + if sizeof(Culong) >= 8 + @test_throws OutOfMemoryError big(96608869069402268615522366320733234710)^16374500563449903721 + @test_throws OutOfMemoryError 555555555555555555555555555555555555555555555555555^55555555555555555 + end let x = big(1) @test signed(x) === x