Skip to content

[SR-16103] expectCrashLater(withMessage:) doesn't work correctly on Linux CI #58362

Open
@glessard

Description

@glessard
Previous ID SR-16103
Radar rdar://91365967
Original Reporter @glessard
Type Bug

Attachment: Download

Environment

I was unable to build for Linux on my machine today, so I have nothing more precise than "the CI environment".

Additional Detail from JIRA
Votes 0
Component/s swift
Labels Bug
Assignee None
Priority Medium

md5: bf124e4f079ec0d2ed8bad960d970880

Issue Description:

The following test file (tested in the test/ hierarchy) fails on the current Linux CI:

// RUN: %target-run-simple-swift
// REQUIRES: executable_test


import StdlibUnittest


var CrashTest = TestSuite("CrashTest")


CrashTest.test("expectCrashLater(withMessage:)") {
  var i: Int? = nil
  expectCrashLater(withMessage: "Unexpectedly found nil while unwrapping an Optional value")
  _ = i!
  expectUnreachable()
  i = 0
}


runAllTests()

The same works as expected on macOS and Windows CI.

I was forced to work around this in 8032a7c

Metadata

Metadata

Assignees

No one assigned

    Labels

    StdlibUnittestbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions