Skip to content

Commit e65e667

Browse files
committed
[Gardening] Updated comment.
Mention that running FunctionTests written in swift requires swift-in-compiler and fixed the name of the register function.
1 parent f321dd3 commit e65e667

File tree

1 file changed

+3
-2
lines changed
  • SwiftCompilerSources/Sources/Optimizer/Utilities

1 file changed

+3
-2
lines changed

SwiftCompilerSources/Sources/Optimizer/Utilities/Test.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
// let myNewTest =
1616
// FunctionTest("my_new_test") { function, arguments, context in
1717
// }
18-
// - In SwiftCompilerSources/Sources/SIL/Test.swift's registerSILTests function,
19-
// register the new test:
18+
// - In SwiftCompilerSources/Sources/SIL/Test.swift's registerOptimizerTests
19+
// function, register the new test:
2020
// registerFunctionTest(myNewTest)
2121
//
2222
//===----------------------------------------------------------------------===//
@@ -57,6 +57,7 @@
5757
// 1) A test test/SILOptimizer/interesting_functionality_unit.sil runs the
5858
// TestRunner pass:
5959
// // RUN: %target-sil-opt -test-runner %s -o /dev/null 2>&1 | %FileCheck %s
60+
// // REQUIRES: swift_in_compiler
6061
// 2) A function in interesting_functionality_unit.sil contains the
6162
// specify_test instruction.
6263
// sil @f : $() -> () {

0 commit comments

Comments
 (0)