Skip to content

[Test] Reenable SIL unit tests on windows. #73460

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions SwiftCompilerSources/Sources/Optimizer/Utilities/Test.swift
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,6 @@ private func functionTestThunk(
let invocation = castToInvocation(fromOpaquePointer: erasedInvocation)
let context = FunctionPassContext(_bridged: BridgedPassContext(invocation: passInvocation.invocation))
invocation(function.function, arguments.native, context)
#if !os(Windows)
// TODO: https://github.com/apple/swift/issues/73252
fflush(stdout)
#endif
}

/// Bitcast a thin test closure to void *.
Expand Down
1 change: 1 addition & 0 deletions lib/SIL/Utils/Test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ void FunctionTest::run(SILFunction &function, Arguments &arguments,
auto *fn = invocation.get<NativeSwiftInvocation>();
Registry::get().getFunctionTestThunk()(fn, {&function}, {&arguments},
{getSwiftPassInvocation()});
fflush(stdout);
}
this->pass = nullptr;
this->function = nullptr;
Expand Down
3 changes: 0 additions & 3 deletions test/SILOptimizer/argument_conventions.sil
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

// REQUIRES: swift_in_compiler

// https://github.com/apple/swift/issues/73252
// UNSUPPORTED: OS=windows-msvc

import Builtin

class C {}
Expand Down
3 changes: 0 additions & 3 deletions test/SILOptimizer/borrow_introducer_unit.sil
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
//
// REQUIRES: swift_in_compiler

// https://github.com/apple/swift/issues/73252
// UNSUPPORTED: OS=windows-msvc

sil_stage raw

import Builtin
Expand Down
3 changes: 0 additions & 3 deletions test/SILOptimizer/enclosing_def_unit.sil
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
//
// REQUIRES: swift_in_compiler

// https://github.com/apple/swift/issues/73252
// UNSUPPORTED: OS=windows-msvc

sil_stage raw

import Builtin
Expand Down
3 changes: 0 additions & 3 deletions test/SILOptimizer/forwarding_utils.sil
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

// REQUIRES: swift_in_compiler

// https://github.com/apple/swift/issues/73252
// UNSUPPORTED: OS=windows-msvc

sil_stage raw

import Builtin
Expand Down
3 changes: 0 additions & 3 deletions test/SILOptimizer/lifetime_dependence_util.sil
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
// REQUIRES: asserts
// REQUIRES: swift_in_compiler

// https://github.com/apple/swift/issues/73252
// UNSUPPORTED: OS=windows-msvc

sil_stage canonical

import Builtin
Expand Down
3 changes: 0 additions & 3 deletions test/SILOptimizer/opaque_values_unit.sil
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

// REQUIRES: swift_in_compiler

// https://github.com/apple/swift/issues/73252
// UNSUPPORTED: OS=windows-msvc

import Builtin

class C {}
Expand Down
3 changes: 0 additions & 3 deletions test/SILOptimizer/ownership_liveness_unit.sil
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

// REQUIRES: swift_in_compiler

// https://github.com/apple/swift/issues/73252
// UNSUPPORTED: OS=windows-msvc

sil_stage canonical

import Builtin
Expand Down
3 changes: 0 additions & 3 deletions test/SILOptimizer/test_specification_parsing.sil
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

// REQUIRES: swift_in_compiler

// https://github.com/apple/swift/issues/73252
// UNSUPPORTED: OS=windows-msvc

sil_stage raw

import Builtin
Expand Down