Skip to content

Commit

Permalink
Fix test compilation on Ubuntu Noble
Browse files Browse the repository at this point in the history
  • Loading branch information
freef4ll authored Nov 15, 2024
1 parent baa4ff2 commit fb55887
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tests/BenchmarkTests/OperatingSystemAndMallocTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 111 in Tests/BenchmarkTests/OperatingSystemAndMallocTests.swift

View check run for this annotation

Codecov / codecov/patch

Tests/BenchmarkTests/OperatingSystemAndMallocTests.swift#L110-L111

Added lines #L110 - L111 were not covered by tests
}

let fildes = fileno(tempFile)

Expand Down

0 comments on commit fb55887

Please sign in to comment.