Skip to content

[SR-216] Increase test coverage on Linux #42838

@gribozavr

Description

@gribozavr
Previous ID SR-216
Radar rdar://problem/19648117
Original Reporter @gribozavr
Type Task
Additional Detail from JIRA
Votes 0
Component/s Compiler, Standard Library
Labels Task, Linux, StarterBug
Assignee None
Priority Medium

md5: 66b0885b16ee37449ebb1fc7351185e9

is blocked by:

  • SR-417 Case of printed UUIDs differs in a platform dependent way

relates to:

  • SR-451 Add protocol mirror test back to Runtime.swift test

Issue Description:

Many important tests are XFAIL'ed on Linux. Usually this is because one or few parts of the test use the Objective-C runtime or rely on Foundation.

These parts can usually be separated into separate files, or guarded with `#if _runtime(_ObjC)`. Sometimes these failures are real issues that we are unaware of and need to start tracking in the bug tracker.

It is easy to find disabled tests with:

$ git grep 'XFAIL: linux'

I consider the following tests to be of high value to be looked at first.

Standard library:

test/1_stdlib/Print.swift
test/1_stdlib/ReflectionHashing.swift
test/1_stdlib/Runtime.swift
validation-test/stdlib/Dictionary.swift
validation-test/stdlib/Set.swift
validation-test/stdlib/String.swift
validation-test/stdlib/Unicode.swift
validation-test/stdlib/UnicodeTrie.swift.gyb

SIL and the optimizer:

test/Serialization/basic_sil.swift

[Update] These ones are done:

test/1_stdlib/ArrayTraps.swift.gyb
test/1_stdlib/SetTraps.swift
test/1_stdlib/StringTraps.swift
validation-test/stdlib/UnicodeUTFEncoders.swift
test/SIL/Parser/basic.sil
test/SILOptimizer/cse.sil
test/SILOptimizer/definite_init_diagnostics.swift
test/SILOptimizer/sil_combine.sil

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions