From ab8b29c752954c37eb39e5d6d997ab58e19cab1f Mon Sep 17 00:00:00 2001 From: Hamish Knight Date: Fri, 24 Jun 2022 13:49:42 +0100 Subject: [PATCH 1/2] [test] Re-enable forward-slash-regex-skipping-allowed.swift Adjust to account for output differences between asserts and non-asserts builds. rdar://95806819 (cherry picked from commit 6c091a5dc2ab4de51a54f4952eabf80875643848) --- .../Parse/forward-slash-regex-skipping-allowed.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/StringProcessing/Parse/forward-slash-regex-skipping-allowed.swift b/test/StringProcessing/Parse/forward-slash-regex-skipping-allowed.swift index d6ba0a9d6553d..81bb00e06638f 100644 --- a/test/StringProcessing/Parse/forward-slash-regex-skipping-allowed.swift +++ b/test/StringProcessing/Parse/forward-slash-regex-skipping-allowed.swift @@ -8,8 +8,10 @@ // Make sure we can skip in all of the below cases. -// We don't appear to output a stats entry when it is 0. -// CHECK-NOT: {{"Parse.NumFunctionsParsed"}} +// The printing implementation differs in asserts and no-asserts builds, it will +// either print `"Parse.NumFunctionsParsed" 0` or not print it at all. Make sure +// we don't output any non-zero value. +// CHECK-NOT: {{"Parse.NumFunctionsParsed" [^0]}} // Balanced `{}`, so okay. func a() { / {}/ } From d9a485f9a05243f5a337cb6091acd7e21b106d13 Mon Sep 17 00:00:00 2001 From: Konrad `ktoso` Malawski Date: Thu, 21 Jul 2022 20:45:17 +0900 Subject: [PATCH 2/2] Disable test while we fix it; the SIL assertions are too detailed (cherry picked from commit ac32323fbe298b0bf077198876b29502e1e2c6b2) --- .../Distributed/SIL/distributed_actor_default_deinit_sil.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/Distributed/SIL/distributed_actor_default_deinit_sil.swift b/test/Distributed/SIL/distributed_actor_default_deinit_sil.swift index 00ef1fa50ec4f..e912acb492813 100644 --- a/test/Distributed/SIL/distributed_actor_default_deinit_sil.swift +++ b/test/Distributed/SIL/distributed_actor_default_deinit_sil.swift @@ -4,6 +4,9 @@ // REQUIRES: concurrency // REQUIRES: distributed +// FIXME(distributed): test fails on optimized build: OSS - Swift (Tools Opt+No Assert, Stdlib Opt+DebInfo, Test Simulator) - macOS +// REQUIRES: radar97074020 + import Distributed import FakeDistributedActorSystems