commit | e940b047245b198e4733a5f89a0acbf70a5b00f4 | [log] [tgz] |
---|---|---|
author | Christoffer Quist Adamsen <christofferqa@google.com> | Sun Sep 26 20:17:07 2021 +0200 |
committer | Christoffer Quist Adamsen <christofferqa@google.com> | Sun Sep 26 18:18:29 2021 +0000 |
tree | c6af3f0d58edfed11380dfa8c119c0933238a72a | |
parent | f7266e1f6ee46c18cb8f825a8e1b770d32d5ee93 [diff] |
Update StringValueOfTest expectation Change-Id: I6cce593b27448979720100ecafebd954dde3b192
diff --git a/src/test/java/com/android/tools/r8/ir/optimize/string/StringValueOfTest.java b/src/test/java/com/android/tools/r8/ir/optimize/string/StringValueOfTest.java index 3861a06..e3fe71a 100644 --- a/src/test/java/com/android/tools/r8/ir/optimize/string/StringValueOfTest.java +++ b/src/test/java/com/android/tools/r8/ir/optimize/string/StringValueOfTest.java
@@ -89,7 +89,7 @@ int expectedCount = isR8 ? 4 : (isRelease ? 5 : 7); assertEquals(expectedCount, countCall(mainMethod, "String", "valueOf")); // Due to the different behavior regarding constant canonicalization. - expectedCount = isR8 ? (parameters.isCfRuntime() ? 3 : 1) : 1; + expectedCount = isR8 ? (parameters.isCfRuntime() ? 4 : 1) : 1; assertEquals(expectedCount, countConstNullNumber(mainMethod)); expectedCount = isR8 ? 1 : (isRelease ? 1 : 0); assertEquals(expectedCount, countNullStringNumber(mainMethod));