Fix ProcessKeepRulesCommandTest
Change-Id: I756cf9f2e40402ea5c2b5a0194de1e4c7cf89671
diff --git a/src/test/java/com/android/tools/r8/processkeeprules/ProcessKeepRulesCommandTest.java b/src/test/java/com/android/tools/r8/processkeeprules/ProcessKeepRulesCommandTest.java
index 13ec056..4bb4eaf 100644
--- a/src/test/java/com/android/tools/r8/processkeeprules/ProcessKeepRulesCommandTest.java
+++ b/src/test/java/com/android/tools/r8/processkeeprules/ProcessKeepRulesCommandTest.java
@@ -45,20 +45,22 @@
"-allowaccessmodification not allowed in library consumer rules.")
.put(
"-keepattributes LineNumberTable",
- "Illegal attempt to keep LineNumberTable in library consumer rules.")
+ "Illegal attempt to keep the attribute 'LineNumberTable' in library consumer rules.")
.put(
"-keepattributes RuntimeInvisibleAnnotations",
- "Illegal attempt to keep RuntimeInvisibleAnnotations in library consumer rules.")
+ "Illegal attempt to keep the attribute 'RuntimeInvisibleAnnotations' in library"
+ + " consumer rules.")
.put(
"-keepattributes RuntimeInvisibleTypeAnnotations",
- "Illegal attempt to keep RuntimeInvisibleTypeAnnotations in library consumer rules.")
+ "Illegal attempt to keep the attribute 'RuntimeInvisibleTypeAnnotations' in library"
+ + " consumer rules.")
.put(
"-keepattributes RuntimeInvisibleParameterAnnotations",
- "Illegal attempt to keep RuntimeInvisibleParameterAnnotations in library consumer"
- + " rules.")
+ "Illegal attempt to keep the attribute 'RuntimeInvisibleParameterAnnotations' in"
+ + " library consumer rules.")
.put(
"-keepattributes SourceFile",
- "Illegal attempt to keep SourceFile in library consumer rules.")
+ "Illegal attempt to keep the attribute 'SourceFile' in library consumer rules.")
.put(
"-renamesourcefileattribute",
"-renamesourcefileattribute not allowed in library consumer rules.")
diff --git a/src/test/testbase/java/com/android/tools/r8/OriginMatcher.java b/src/test/testbase/java/com/android/tools/r8/OriginMatcher.java
index 4f5ad82..4f994b1 100644
--- a/src/test/testbase/java/com/android/tools/r8/OriginMatcher.java
+++ b/src/test/testbase/java/com/android/tools/r8/OriginMatcher.java
@@ -26,7 +26,7 @@
@Override
public void describeTo(Description description) {
- description.appendText("not a parent " + parent);
+ description.appendText("a parent " + parent);
}
};
}
@@ -40,7 +40,7 @@
@Override
public void describeTo(Description description) {
- description.appendText("part is not " + part);
+ description.appendText("part " + part);
}
};
}