File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,10 @@ final class DynamicTracepointTracerTests: XCTestCase {
87
87
}
88
88
89
89
func logic( fakeLine: UInt ) {
90
+ #if swift(>=5.5)
90
91
InstrumentationSystem . tracer. withSpan ( " \( #function) -dont " , line: fakeLine) { _ in
91
92
}
93
+ #endif
92
94
}
93
95
94
96
func traceMeLogic( fakeLine: UInt ) {
@@ -166,6 +168,7 @@ final class DynamicTracepointTestTracer: Tracer {
166
168
}
167
169
168
170
private func shouldRecord( tracepoint: TracepointID ) -> Bool {
171
+ #if swift(>=5.5.0)
169
172
if self . isActive ( tracepoint: tracepoint) {
170
173
// this tracepoint was specifically activated!
171
174
return true
@@ -184,6 +187,9 @@ final class DynamicTracepointTestTracer: Tracer {
184
187
// there is some active trace already, so we should record as well
185
188
// TODO: this logic may need to become smarter
186
189
return true
190
+ #else
191
+ return false
192
+ #endif
187
193
}
188
194
189
195
func isActive( tracepoint: TracepointID ) -> Bool {
You can’t perform that action at this time.
0 commit comments