aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-01-04 20:00:09 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-01-04 20:00:09 +0000
commit55434a90d3a2445ef87818a34742361f0aba3cb8 (patch)
tree1bb950f30054b148dd48c8af0574ca970e2ce5de
parent939f5899d3a83de5fec87e2deed1d082a936f853 (diff)
parent505e39e0af29f654f3da18a8faab22113155cee7 (diff)
downloadskia-aml_cbr_341610000.tar.gz
Snap for 11273583 from 505e39e0af29f654f3da18a8faab22113155cee7 to mainline-cellbroadcast-releaseaml_cbr_341710000aml_cbr_341610000aml_cbr_341510010
Change-Id: I726bddbc55a4e6995defaaf9063b0f06d53c563e
-rw-r--r--platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/SkQPRunner.java31
1 files changed, 1 insertions, 30 deletions
diff --git a/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/SkQPRunner.java b/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/SkQPRunner.java
index c94d932686..8a322ba647 100644
--- a/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/SkQPRunner.java
+++ b/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/SkQPRunner.java
@@ -182,36 +182,7 @@ public class SkQPRunner extends Runner implements Filterable {
name(index)));
return false;
}
- catch (Exception ex) {
- // Verify that RuntimeShader actually emitted the expected error messages.
- // The list of expectations isn't necessarily exhaustive, though.
- String errorText = ex.getMessage();
- String[] block = shaderText.split(Pattern.quote("*%%*"));
- if (block.length >= 3) {
- // We only intend to support a single /%**%/ section.
- // Because we are splitting on *%%*, expectations should always be in block[1].
- String[] expectations = block[1].split("\n");
- for (String expectation : expectations) {
- if (expectation.length() == 0) {
- continue;
- }
- int errIndex = errorText.indexOf(expectation);
- // If this error wasn't reported, trigger an error.
- if (errIndex < 0) {
- String failMessage = String.format("Expected error '%s', got '%s'",
- expectation, ex.getMessage());
- SkQPRunner.Fail(desc(index), notifier, failMessage);
- Log.w(TAG, String.format("[FAIL] '%s': %s", name(index), failMessage));
- return false;
- }
- // We found the error that we expected to have. Remove that error from our
- // text, and everything preceding it as well. This ensures that we don't
- // match the same error twice, and that errors are reported in the order
- // we expect.
- errorText = errorText.substring(errIndex + expectation.length());
- }
- }
- }
+ catch (Exception ex) { } // Assume any exception is an expected SkSL error.
return true;
}
}