Skip to content

Commit 1713693

Browse files
Merge pull request #71558 from nate-chandler/test/20240212/1/troubleshoot-test-note
[Test] Added troubleshooting note.
2 parents bc132da + f9ee089 commit 1713693

File tree

1 file changed

+17
-0
lines changed
  • SwiftCompilerSources/Sources/Optimizer/Utilities

1 file changed

+17
-0
lines changed

SwiftCompilerSources/Sources/Optimizer/Utilities/Test.swift

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,23 @@
2121
//
2222
//===----------------------------------------------------------------------===//
2323
//
24+
// TO TROUBLESHOOT A NEW TEST, consider the following scenarios:
25+
// - PROBLEM: The test isn't running on PLATFORM and the failure says
26+
//
27+
// Found no test named my_new_test.
28+
//
29+
// SOLUTION: Is this a platform one that doesn't use SwiftCompilerSources
30+
// (e.g. Windows)? Then add
31+
//
32+
// // REQUIRES: swift_in_compiler
33+
//
34+
// to the test file.
35+
// EXPLANATION: The tests written within SwiftCompilerSources only get built
36+
// and registered on platforms where the SwiftCompilerSources are
37+
// built and used.
38+
//
39+
//===----------------------------------------------------------------------===//
40+
//
2441
// Provides a mechanism for writing tests against compiler code in the context
2542
// of a function. The goal is to get the same effect as calling a function and
2643
// checking its output.

0 commit comments

Comments
 (0)