Verify ART run-tests' standard output and standard error separately.

Introduce expected standard error files for ART run-tests. Collect
tests' standard output and standard error separately and check them
against the corresponding expectation file.

Test: Run ART run-tests on host and device using `testrunner.py`.
Test: atest --test-mapping art:all
Test: atest --test-mapping cts/hostsidetests/jvmti:all
Bug: 171865375
Bug: 147812905
Change-Id: Ie95bec4a4684ff6791d464124ce8976339432d1f
diff --git a/test/562-bce-preheader/Android.bp b/test/562-bce-preheader/Android.bp
index dd129ab..a1a4361 100644
--- a/test/562-bce-preheader/Android.bp
+++ b/test/562-bce-preheader/Android.bp
@@ -8,13 +8,24 @@
     defaults: ["art-run-test-defaults"],
     test_config_template: ":art-run-test-target-template",
     srcs: ["src/**/*.java"],
-    data: [":art-run-test-562-bce-preheader-expected-stdout"],
+    data: [
+        ":art-run-test-562-bce-preheader-expected-stdout",
+        ":art-run-test-562-bce-preheader-expected-stderr",
+    ],
 }
 
-// Test's expected output.
+// Test's expected standard output.
 genrule {
     name: "art-run-test-562-bce-preheader-expected-stdout",
     out: ["art-run-test-562-bce-preheader-expected-stdout.txt"],
     srcs: ["expected-stdout.txt"],
     cmd: "cp -f $(in) $(out)",
 }
+
+// Test's expected standard error.
+genrule {
+    name: "art-run-test-562-bce-preheader-expected-stderr",
+    out: ["art-run-test-562-bce-preheader-expected-stderr.txt"],
+    srcs: ["expected-stderr.txt"],
+    cmd: "cp -f $(in) $(out)",
+}