Skip to content

Listing tests with empty LinuxMain.swift outputs error message (Swift 5.8) #5744

Closed as not planned
@adam-fowler

Description

@adam-fowler

Description

Running swift test list outputs an error for SwiftPM packages that have an empty LinuxMain.swift

Expected behavior

swift test list to output a list of all the tests in a package

Actual behavior

It outputs

error: malformed

Steps to reproduce

  1. swift package init
  2. touch Tests/LinuxMain.swift
  3. swift test list

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version && uname -a)

Swift version 5.8-dev (LLVM f6b60d5b8f4b443, Swift ecccce61139bbc4)
Target: x86_64-unknown-linux-gnu
Linux af-starbook 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugswift testChanges impacting `swift test` tool

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions