XCTAssertEqualWithAccuracy crashes with Float80
| Originator: | igeek1 | ||
| Number: | rdar://31927205 | Date Originated: | 01-May-2017 08:06 PM |
| Status: | Open | Resolved: | |
| Product: | Xcode | Product Version: | 8.3.2 (12175) |
| Classification: | Crash/hang/Data Loss | Reproducible: | Always |
Summary:
XCTAssertEqualWithAccuracy(Float80(0), Float80(0), accuracy: 0.0001) crashes with EXC_BAD_INSTRUCTION
Steps to Reproduce:
1. Create a new macOS Application with unit tests.
2. Add this test:
func testCrash() {
XCTAssertEqualWithAccuracy(Float80(0), Float80(0), accuracy: 0.0001)
}
3. Run the tests.
Expected Results:
The test passes.
Observed Results:
The test crashes with an EXC_BAD_ACCESS.
Version:
Xcode 8.3.2 (12175) on macOS 10.12.4 (16E195)
Notes:
Attached project also uploaded at https://cl.ly/kFDZ
Configuration:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!