Skip to content

Commit bd41dbf

Browse files
authored
Merge pull request #71449 from hamishknight/filecheck-color
Enable colors in FileCheck and Swift tests
2 parents 517d185 + 5d0ad81 commit bd41dbf

File tree

47 files changed

+143
-107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+143
-107
lines changed

include/swift/Basic/ColorUtils.h

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212
//
13-
// This file defines an 'OSColor' class for helping printing colorful outputs
13+
// This file defines several utilities for helping print colorful outputs
1414
// to the terminal.
1515
//
1616
//===----------------------------------------------------------------------===//
@@ -42,6 +42,59 @@ class OSColor {
4242
OSColor &operator<<(llvm::StringRef Str) { OS << Str; return *this; }
4343
};
4444

45+
/// A stream which forces color output.
46+
class ColoredStream : public raw_ostream {
47+
raw_ostream &Underlying;
48+
49+
public:
50+
explicit ColoredStream(raw_ostream &underlying) : Underlying(underlying) {}
51+
~ColoredStream() override { flush(); }
52+
53+
raw_ostream &changeColor(Colors color, bool bold = false,
54+
bool bg = false) override {
55+
Underlying.changeColor(color, bold, bg);
56+
return *this;
57+
}
58+
raw_ostream &resetColor() override {
59+
Underlying.resetColor();
60+
return *this;
61+
}
62+
raw_ostream &reverseColor() override {
63+
Underlying.reverseColor();
64+
return *this;
65+
}
66+
bool has_colors() const override { return true; }
67+
68+
void write_impl(const char *ptr, size_t size) override {
69+
Underlying.write(ptr, size);
70+
}
71+
uint64_t current_pos() const override {
72+
return Underlying.tell() - GetNumBytesInBuffer();
73+
}
74+
75+
size_t preferred_buffer_size() const override { return 0; }
76+
};
77+
78+
/// A stream which drops all color settings.
79+
class NoColorStream : public raw_ostream {
80+
raw_ostream &Underlying;
81+
82+
public:
83+
explicit NoColorStream(raw_ostream &underlying) : Underlying(underlying) {}
84+
~NoColorStream() override { flush(); }
85+
86+
bool has_colors() const override { return false; }
87+
88+
void write_impl(const char *ptr, size_t size) override {
89+
Underlying.write(ptr, size);
90+
}
91+
uint64_t current_pos() const override {
92+
return Underlying.tell() - GetNumBytesInBuffer();
93+
}
94+
95+
size_t preferred_buffer_size() const override { return 0; }
96+
};
97+
4598
} // namespace swift
4699

47100
#endif // SWIFT_BASIC_COLORUTILS_H

include/swift/Frontend/DiagnosticVerifier.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,16 @@ class DiagnosticVerifier : public DiagnosticConsumer {
9494
SmallVector<unsigned, 4> AdditionalBufferIDs;
9595
bool AutoApplyFixes;
9696
bool IgnoreUnknown;
97+
bool UseColor;
9798
ArrayRef<std::string> AdditionalExpectedPrefixes;
9899

99100
public:
100101
explicit DiagnosticVerifier(SourceManager &SM, ArrayRef<unsigned> BufferIDs,
101102
bool AutoApplyFixes, bool IgnoreUnknown,
103+
bool UseColor,
102104
ArrayRef<std::string> AdditionalExpectedPrefixes)
103105
: SM(SM), BufferIDs(BufferIDs), AutoApplyFixes(AutoApplyFixes),
104-
IgnoreUnknown(IgnoreUnknown),
106+
IgnoreUnknown(IgnoreUnknown), UseColor(UseColor),
105107
AdditionalExpectedPrefixes(AdditionalExpectedPrefixes) {}
106108

107109
void appendAdditionalBufferID(unsigned bufferID) {
@@ -124,6 +126,11 @@ class DiagnosticVerifier : public DiagnosticConsumer {
124126
bool HadUnexpectedDiag;
125127
};
126128

129+
void printDiagnostic(const llvm::SMDiagnostic &Diag) const;
130+
131+
bool
132+
verifyUnknown(std::vector<CapturedDiagnosticInfo> &CapturedDiagnostics) const;
133+
127134
/// verifyFile - After the file has been processed, check to see if we
128135
/// got all of the expected diagnostics and check to see if there were any
129136
/// unexpected ones.

lib/Frontend/DiagnosticVerifier.cpp

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
//===----------------------------------------------------------------------===//
1616

1717
#include "swift/Frontend/DiagnosticVerifier.h"
18+
#include "swift/Basic/ColorUtils.h"
1819
#include "swift/Basic/SourceManager.h"
1920
#include "swift/Parse/Lexer.h"
2021
#include "llvm/ADT/STLExtras.h"
@@ -328,11 +329,11 @@ static void autoApplyFixes(SourceManager &SM, unsigned BufferID,
328329
if (!error)
329330
outs << Result;
330331
}
332+
} // end anonymous namespace
331333

332334
/// diagnostics for '<unknown>:0' should be considered as unexpected.
333-
static bool
334-
verifyUnknown(SourceManager &SM,
335-
std::vector<CapturedDiagnosticInfo> &CapturedDiagnostics) {
335+
bool DiagnosticVerifier::verifyUnknown(
336+
std::vector<CapturedDiagnosticInfo> &CapturedDiagnostics) const {
336337
bool HadError = false;
337338
for (unsigned i = 0, e = CapturedDiagnostics.size(); i != e; ++i) {
338339
if (CapturedDiagnostics[i].Loc.isValid())
@@ -346,11 +347,10 @@ verifyUnknown(SourceManager &SM,
346347
.str();
347348

348349
auto diag = SM.GetMessage({}, llvm::SourceMgr::DK_Error, Message, {}, {});
349-
SM.getLLVMSourceMgr().PrintMessage(llvm::errs(), diag);
350+
printDiagnostic(diag);
350351
}
351352
return HadError;
352353
}
353-
} // end anonymous namespace
354354

355355
/// Return true if the given \p ExpectedFixIt is in the fix-its emitted by
356356
/// diagnostic \p D.
@@ -377,6 +377,13 @@ bool DiagnosticVerifier::checkForFixIt(
377377
return false;
378378
}
379379

380+
void DiagnosticVerifier::printDiagnostic(const llvm::SMDiagnostic &Diag) const {
381+
raw_ostream &stream = llvm::errs();
382+
ColoredStream coloredStream{stream};
383+
raw_ostream &out = UseColor ? coloredStream : stream;
384+
SM.getLLVMSourceMgr().PrintMessage(out, Diag);
385+
}
386+
380387
std::string
381388
DiagnosticVerifier::renderFixits(ArrayRef<CapturedFixItInfo> ActualFixIts,
382389
unsigned BufferID,
@@ -1184,7 +1191,7 @@ DiagnosticVerifier::Result DiagnosticVerifier::verifyFile(unsigned BufferID) {
11841191

11851192
// Emit all of the queue'd up errors.
11861193
for (auto Err : Errors)
1187-
SM.getLLVMSourceMgr().PrintMessage(llvm::errs(), Err);
1194+
printDiagnostic(Err);
11881195

11891196
// If auto-apply fixits is on, rewrite the original source file.
11901197
if (AutoApplyFixes)
@@ -1214,10 +1221,11 @@ void DiagnosticVerifier::printRemainingDiagnostics() const {
12141221
break;
12151222
}
12161223

1217-
SM.getLLVMSourceMgr().PrintMessage(
1218-
llvm::errs(), getRawLoc(diag.Loc), SMKind,
1219-
"diagnostic produced elsewhere: " + diag.Message.str(),
1220-
/*Ranges=*/{}, {});
1224+
auto message =
1225+
SM.GetMessage(diag.Loc, SMKind,
1226+
"diagnostic produced elsewhere: " + diag.Message.str(),
1227+
/*Ranges=*/{}, {});
1228+
printDiagnostic(message);
12211229
}
12221230
}
12231231

@@ -1288,7 +1296,7 @@ bool DiagnosticVerifier::finishProcessing() {
12881296
Result.HadUnexpectedDiag |= FileResult.HadUnexpectedDiag;
12891297
}
12901298
if (!IgnoreUnknown) {
1291-
bool HadError = verifyUnknown(SM, CapturedDiagnostics);
1299+
bool HadError = verifyUnknown(CapturedDiagnostics);
12921300
Result.HadError |= HadError;
12931301
// For <unknown>, all errors are unexpected.
12941302
Result.HadUnexpectedDiag |= HadError;

lib/Frontend/Frontend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ bool CompilerInstance::setupDiagnosticVerifierIfNeeded() {
387387
DiagVerifier = std::make_unique<DiagnosticVerifier>(
388388
SourceMgr, InputSourceCodeBufferIDs,
389389
diagOpts.VerifyMode == DiagnosticOptions::VerifyAndApplyFixes,
390-
diagOpts.VerifyIgnoreUnknown,
390+
diagOpts.VerifyIgnoreUnknown, diagOpts.UseColor,
391391
diagOpts.AdditionalDiagnosticVerifierPrefixes);
392392
for (const auto &filename : diagOpts.AdditionalVerifierFiles) {
393393
auto result = getFileSystem().getBufferForFile(filename);

lib/Frontend/PrintingDiagnosticConsumer.cpp

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "swift/AST/ASTBridging.h"
1919
#include "swift/AST/DiagnosticEngine.h"
2020
#include "swift/AST/DiagnosticsCommon.h"
21+
#include "swift/Basic/ColorUtils.h"
2122
#include "swift/Basic/LLVM.h"
2223
#include "swift/Basic/SourceManager.h"
2324
#include "swift/Bridging/ASTGen.h"
@@ -36,61 +37,6 @@ using namespace swift;
3637
using namespace swift::markup;
3738

3839
namespace {
39-
class ColoredStream : public raw_ostream {
40-
raw_ostream &Underlying;
41-
public:
42-
explicit ColoredStream(raw_ostream &underlying) : Underlying(underlying) {}
43-
~ColoredStream() override { flush(); }
44-
45-
raw_ostream &changeColor(Colors color, bool bold = false,
46-
bool bg = false) override {
47-
Underlying.changeColor(color, bold, bg);
48-
return *this;
49-
}
50-
raw_ostream &resetColor() override {
51-
Underlying.resetColor();
52-
return *this;
53-
}
54-
raw_ostream &reverseColor() override {
55-
Underlying.reverseColor();
56-
return *this;
57-
}
58-
bool has_colors() const override {
59-
return true;
60-
}
61-
62-
void write_impl(const char *ptr, size_t size) override {
63-
Underlying.write(ptr, size);
64-
}
65-
uint64_t current_pos() const override {
66-
return Underlying.tell() - GetNumBytesInBuffer();
67-
}
68-
69-
size_t preferred_buffer_size() const override {
70-
return 0;
71-
}
72-
};
73-
74-
/// A stream which drops all color settings.
75-
class NoColorStream : public raw_ostream {
76-
raw_ostream &Underlying;
77-
78-
public:
79-
explicit NoColorStream(raw_ostream &underlying) : Underlying(underlying) {}
80-
~NoColorStream() override { flush(); }
81-
82-
bool has_colors() const override { return false; }
83-
84-
void write_impl(const char *ptr, size_t size) override {
85-
Underlying.write(ptr, size);
86-
}
87-
uint64_t current_pos() const override {
88-
return Underlying.tell() - GetNumBytesInBuffer();
89-
}
90-
91-
size_t preferred_buffer_size() const override { return 0; }
92-
};
93-
9440
// MARK: Markdown Printing
9541
class TerminalMarkupPrinter : public MarkupASTVisitor<TerminalMarkupPrinter> {
9642
llvm::raw_ostream &OS;

test/Constraints/type_inference_from_default_exprs_executable_test.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/InferViaDefaults.swiftmodule -module-name InferViaDefaults %S/Inputs/type_inference_via_defaults_other_module.swift
33
// RUN: %target-build-swift -module-name main -Xfrontend -parse-as-library -I %t %s %S/Inputs/type_inference_via_defaults_other_module.swift -o %t/a.out
4-
// RUN: %target-run %t/a.out | %FileCheck %s --color
4+
// RUN: %target-run %t/a.out | %FileCheck %s
55

66
// REQUIRES: OS=macosx && CPU=x86_64
77

test/Distributed/Runtime/distributed_actor_cross_module_final_class_adhoc_requirement_not_optimized_away.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift -target %target-cpu-apple-macosx13.0 -parse-as-library -emit-library -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems %S/../Inputs/FakeDistributedActorSystems.swift -o %t/%target-library-name(FakeDistributedActorSystems)
33
// RUN: %target-build-swift -target %target-cpu-apple-macosx13.0 -parse-as-library -lFakeDistributedActorSystems -module-name main -I %t -L %t %s -o %t/a.out
4-
// RUN: %target-run %t/a.out | %FileCheck %s --color
4+
// RUN: %target-run %t/a.out | %FileCheck %s
55

66
// REQUIRES: OS=macosx && (CPU=x86_64 || CPU=arm64)
77
// REQUIRES: executable_test

test/Distributed/Runtime/distributed_actor_custom_executor_basic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems %S/../Inputs/FakeDistributedActorSystems.swift
33
// RUN: %target-build-swift -module-name main -Xfrontend -enable-experimental-distributed -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-codesign %t/a.out
5-
// RUN: %target-run %t/a.out | %FileCheck %s --color
5+
// RUN: %target-run %t/a.out | %FileCheck %s
66

77
// REQUIRES: executable_test
88
// REQUIRES: concurrency

test/Distributed/Runtime/distributed_actor_custom_executor_from_id.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems %S/../Inputs/FakeDistributedActorSystems.swift
33
// RUN: %target-build-swift -module-name main -Xfrontend -enable-experimental-distributed -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-codesign %t/a.out
5-
// RUN: %target-run %t/a.out | %FileCheck %s --color
5+
// RUN: %target-run %t/a.out | %FileCheck %s
66

77
// REQUIRES: executable_test
88
// REQUIRES: concurrency

test/Distributed/Runtime/distributed_actor_encode_roundtrip.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
44
// RUN: %target-build-swift -module-name main -Xfrontend -enable-experimental-distributed -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeCodableForDistributedTests.swift %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
55
// RUN: %target-codesign %t/a.out
6-
// RUN: %target-run %t/a.out | %FileCheck %s --color
6+
// RUN: %target-run %t/a.out | %FileCheck %s
77

88
// REQUIRES: executable_test
99
// REQUIRES: concurrency

test/Distributed/Runtime/distributed_actor_func_calls_decoded_args_deinit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
33
// RUN: %target-build-swift -module-name main -O -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-codesign %t/a.out
5-
// RUN: %target-run %t/a.out | %FileCheck %s --color
5+
// RUN: %target-run %t/a.out | %FileCheck %s
66

77
// REQUIRES: executable_test
88
// REQUIRES: concurrency

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_bad_targets.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
33
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-codesign %t/a.out
5-
// RUN: %target-run %t/a.out | %FileCheck %s --color
5+
// RUN: %target-run %t/a.out | %FileCheck %s
66

77
// REQUIRES: executable_test
88
// REQUIRES: concurrency

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_computedProperty.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
33
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-codesign %t/a.out
5-
// RUN: %target-run %t/a.out | %FileCheck %s --color
5+
// RUN: %target-run %t/a.out | %FileCheck %s
66

77
// REQUIRES: executable_test
88
// REQUIRES: concurrency

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_echo.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
33
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-codesign %t/a.out
5-
// RUN: %target-run %t/a.out | %FileCheck %s --color
5+
// RUN: %target-run %t/a.out | %FileCheck %s
66

77
// REQUIRES: executable_test
88
// REQUIRES: concurrency

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_empty.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
33
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-codesign %t/a.out
5-
// RUN: %target-run %t/a.out | %FileCheck %s --color
5+
// RUN: %target-run %t/a.out | %FileCheck %s
66

77
// REQUIRES: executable_test
88
// REQUIRES: concurrency

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_genericFunc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
33
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-codesign %t/a.out
5-
// RUN: %target-run %t/a.out | %FileCheck %s --color
5+
// RUN: %target-run %t/a.out | %FileCheck %s
66

77
// REQUIRES: executable_test
88
// REQUIRES: concurrency

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_hello.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
33
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-codesign %t/a.out
5-
// RUN: %target-run %t/a.out | %FileCheck %s --color
5+
// RUN: %target-run %t/a.out | %FileCheck %s
66

77
// REQUIRES: executable_test
88
// REQUIRES: concurrency

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_property.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
33
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-codesign %t/a.out
5-
// RUN: %target-run %t/a.out | %FileCheck %s --color
5+
// RUN: %target-run %t/a.out | %FileCheck %s
66

77
// REQUIRES: executable_test
88
// REQUIRES: concurrency

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_remoteChanged_asyncness.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
33
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
4-
// RUN: %target-run %t/a.out | %FileCheck %s --color
4+
// RUN: %target-run %t/a.out | %FileCheck %s
55

66
// REQUIRES: executable_test
77
// REQUIRES: concurrency

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_take.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
33
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-codesign %t/a.out
5-
// RUN: %target-run %t/a.out | %FileCheck %s --color
5+
// RUN: %target-run %t/a.out | %FileCheck %s
66

77
// REQUIRES: executable_test
88
// REQUIRES: concurrency

0 commit comments

Comments
 (0)