Skip to content

Commit 07a5ac3

Browse files
committed
C#: Fixup tests.
1 parent e42afa3 commit 07a5ac3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

csharp/ql/lib/semmle/code/cil/ConsistencyChecks.qll

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,13 @@ class ExprMissingType extends InstructionViolation {
617617
not instruction instanceof Opcodes::Arglist and
618618
not instruction instanceof Opcodes::Refanytype and
619619
instruction.getPushCount() >= 1 and
620-
count(instruction.getType()) != 1
620+
count(instruction.getType()) != 1 and
621+
// OS specific (osx) specific inconsistency
622+
not instruction
623+
.getImplementation()
624+
.getMethod()
625+
.hasFullyQualifiedName("System.Runtime.InteropServices.RuntimeInformation",
626+
"get_OSDescription")
621627
}
622628

623629
override string getMessage() { result = "Expression is missing getType()" }

0 commit comments

Comments
 (0)