diff --git a/joern-cli/frontends/c2cpg/src/test/scala/io/joern/c2cpg/dataflow/DataFlowTests.scala b/joern-cli/frontends/c2cpg/src/test/scala/io/joern/c2cpg/dataflow/DataFlowTests.scala index 991088a9df8c..45c39905120f 100644 --- a/joern-cli/frontends/c2cpg/src/test/scala/io/joern/c2cpg/dataflow/DataFlowTests.scala +++ b/joern-cli/frontends/c2cpg/src/test/scala/io/joern/c2cpg/dataflow/DataFlowTests.scala @@ -50,7 +50,7 @@ class DataFlowTests extends DataFlowCodeToCpgSuite { "find flows to `free`" in { val source = cpg.identifier - val sink = cpg.call.name("free") + val sink = cpg.call.name("free").argument sink.reachableByFlows(source).l.map(flowToResultPairs).distinct.size shouldBe 6 } @@ -1312,7 +1312,7 @@ class DataFlowTests extends DataFlowCodeToCpgSuite { "find flows to `free`" in { val source = cpg.identifier - val sink = cpg.call.name("free") + val sink = cpg.call.name("free").argument sink.reachableByFlows(source).l.map(flowToResultPairs).distinct.toSet.size shouldBe 6 }