Disable inspector for older Kotlin versions in tests

Change-Id: I40011afcda89e6817c2b65d4f3c80005b644c93b
diff --git a/src/test/java/com/android/tools/r8/kotlin/KotlinClassInlinerTest.java b/src/test/java/com/android/tools/r8/kotlin/KotlinClassInlinerTest.java
index ef9fece..d5965e5 100644
--- a/src/test/java/com/android/tools/r8/kotlin/KotlinClassInlinerTest.java
+++ b/src/test/java/com/android/tools/r8/kotlin/KotlinClassInlinerTest.java
@@ -103,6 +103,10 @@
                     .noClassInlining())
         .inspect(
             inspector -> {
+              if (kotlinc.getCompilerVersion().isLessThan(KOTLINC_2_0_20)) {
+                // Do not inspect output for older Kotlin versions.
+                return;
+              }
               if (testParameters.isCfRuntime() && !hasKotlinCGeneratedLambdaClasses) {
                 assertEquals(5, inspector.allClasses().size());
               } else {
@@ -127,6 +131,10 @@
                     .addNoVerticalClassMergingRule("class_inliner_lambda_j_style.SamIface"))
         .inspect(
             inspector -> {
+              if (kotlinc.getCompilerVersion().isLessThan(KOTLINC_2_0_20)) {
+                // Do not inspect output for older Kotlin versions.
+                return;
+              }
               if (testParameters.isCfRuntime() && !hasKotlinCGeneratedLambdaClasses) {
                 assertEquals(5, inspector.allClasses().size());
               } else {