Skip to content

Missing Test Result output on Linux when using print #1393

Closed
@RandomHashTags

Description

@RandomHashTags

Describe the bug
Title describes it.

To Reproduce

  1. Copy paste the following code
  2. Run the test by clicking the run button for yup provided by vscode-swift

NOT reproducible:

  • on macOS
  • executing swift test from terminal
struct League3Tests {
    @Test func yup() {
        var string:String = ""
        for i in 1...2000 {
            string += "\(i)\n"
        }
        print(string)
    }
}

Which always produces:

Without line breaks:

Image

Expected behavior
Printing of the whole string and test result output with no missing content.

Environment

  • OS: Arch Linux (6.13.2-arch1-1)
  • Swift version (swift-6.0.3-RELEASE)
  • Visual Studio Code version: 1.96.4-1
  • vscode-swift version: 2.0.0

Additional context
Forum post: https://forums.swift.org/t/77808

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Needs Verification

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions