Skip to content

Commit 5657bd0

Browse files
committed
C#: Update type annontations test to exclude OS specific stuff.
1 parent 177fcbb commit 5657bd0

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

csharp/ql/test/library-tests/cil/typeAnnotations/typeAnnotations.expected

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
| Local variable 0 of method System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction | local | 32 |
4949
| Local variable 0 of method System.Threading.TimerQueue.LinkTimer | local | 32 |
5050
| Local variable 1 of method Interop.Sys.GetControlCharacters | local | 32 |
51-
| Local variable 1 of method Interop.libobjc.NSOperatingSystemVersion_objc_msgSend_stret | local | 32 |
5251
| Local variable 1 of method System.Array.Fill | local | 32 |
5352
| Local variable 1 of method System.Array.GetUpperBound | local | 32 |
5453
| Local variable 1 of method System.Buffer.Memmove | local | 32 |
@@ -279,7 +278,6 @@
279278
| Local variable 2 of method System.Reflection.Emit.TypeBuilder.SetParamInfo | local | 32 |
280279
| Local variable 2 of method System.Reflection.RuntimeAssembly.GetManifestResourceInfo | local | 32 |
281280
| Local variable 2 of method System.Reflection.RuntimeAssembly.GetResource | local | 32 |
282-
| Local variable 2 of method System.Runtime.InteropServices.ObjectiveC.ObjectiveCMarshal.CreateReferenceTrackingHandleInternal | local | 32 |
283281
| Local variable 2 of method System.String.CompareOrdinalHelper | local | 32 |
284282
| Local variable 2 of method System.String.MakeSeparatorListVectorized | local | 32 |
285283
| Local variable 2 of method System.StubHelpers.AnsiCharMarshaler.DoAnsiConversion | local | 32 |
@@ -409,7 +407,6 @@
409407
| Local variable 4 of method Interop.Kernel32.SetEnvironmentVariable | local | 32 |
410408
| Local variable 4 of method Interop.Sys.IsMemberOfGroup | local | 32 |
411409
| Local variable 4 of method System.Array.Copy | local | 32 |
412-
| Local variable 4 of method System.CLRConfig.GetConfigBoolValue | local | 32 |
413410
| Local variable 4 of method System.Collections.Generic.Dictionary.CollectionsMarshalHelper.GetValueRefOrAddDefault | local | 32 |
414411
| Local variable 4 of method System.Collections.Generic.Dictionary.CopyEntries | local | 32 |
415412
| Local variable 4 of method System.Collections.Generic.Dictionary.Resize | local | 32 |
@@ -448,7 +445,6 @@
448445
| Local variable 4 of method System.Reflection.RuntimeAssembly.GetResource | local | 32 |
449446
| Local variable 4 of method System.Reflection.RuntimeAssembly.InternalLoad | local | 32 |
450447
| Local variable 4 of method System.Runtime.InteropServices.NativeLibrary.LoadByName | local | 32 |
451-
| Local variable 4 of method System.Runtime.InteropServices.ObjectiveC.ObjectiveCMarshal.CreateReferenceTrackingHandleInternal | local | 32 |
452448
| Local variable 4 of method System.Runtime.Loader.AssemblyLoadContext.InternalLoad | local | 32 |
453449
| Local variable 4 of method System.Runtime.Loader.AssemblyLoadContext.TraceAssemblyLoadFromResolveHandlerInvoked | local | 32 |
454450
| Local variable 4 of method System.SpanHelpers.IndexOf | local | 32 |

csharp/ql/test/library-tests/cil/typeAnnotations/typeAnnotations.ql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ private predicate exclude(string s) {
5757
"Parameter 1 of System.Runtime.InteropServices.ObjectiveC.ObjectiveCMarshal.CreateReferenceTrackingHandleInternal",
5858
"Parameter 2 of System.Runtime.InteropServices.ObjectiveC.ObjectiveCMarshal.CreateReferenceTrackingHandleInternal",
5959
"Parameter 2 of System.Runtime.InteropServices.ObjectiveC.ObjectiveCMarshal.InvokeUnhandledExceptionPropagation",
60+
"Local variable 1 of method Interop.libobjc.NSOperatingSystemVersion_objc_msgSend_stret",
61+
"Local variable 1 of method System.Diagnostics.Tracing.XplatEventLogger.LogEventSource",
62+
"Local variable 2 of method System.Runtime.InteropServices.ObjectiveC.ObjectiveCMarshal.CreateReferenceTrackingHandleInternal",
63+
"Local variable 3 of method System.Diagnostics.Tracing.XplatEventLogger.LogEventSource",
64+
"Local variable 4 of method System.CLRConfig.GetConfigBoolValue",
65+
"Local variable 4 of method System.Runtime.InteropServices.ObjectiveC.ObjectiveCMarshal.CreateReferenceTrackingHandleInternal",
66+
"Local variable 5 of method System.Diagnostics.Tracing.XplatEventLogger.LogEventSource",
67+
"Parameter 0 of System.Diagnostics.Tracing.XplatEventLogger.AppendByteArrayAsHexString",
68+
"Parameter 1 of System.Diagnostics.Tracing.XplatEventLogger.MinimalJsonserializer"
6069
]
6170
}
6271

0 commit comments

Comments
 (0)