From fb5588770e21627fa281c985ffb15d95c1fc7115 Mon Sep 17 00:00:00 2001 From: freef4ll <103502659+freef4ll@users.noreply.github.com> Date: Fri, 15 Nov 2024 18:33:42 +0300 Subject: [PATCH] Fix test compilation on Ubuntu Noble --- Tests/BenchmarkTests/OperatingSystemAndMallocTests.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tests/BenchmarkTests/OperatingSystemAndMallocTests.swift b/Tests/BenchmarkTests/OperatingSystemAndMallocTests.swift index 9f3d5069..7db61f49 100644 --- a/Tests/BenchmarkTests/OperatingSystemAndMallocTests.swift +++ b/Tests/BenchmarkTests/OperatingSystemAndMallocTests.swift @@ -106,7 +106,10 @@ final class OperatingSystemAndMallocTests: XCTestCase { let amplificationFactor = 1_000 let tempFile = tmpfile() - XCTAssertNotNil(tempFile, "tmpfile() failed: \(errno)") + guard let tempFile else { + XCTFail("tmpfile() failed: \(errno)") + return + } let fildes = fileno(tempFile)