diff options
author | 2020-10-28 12:20:59 +0000 | |
---|---|---|
committer | 2020-11-10 09:46:01 +0000 | |
commit | b15e8797d2ca6fb480a940887c66dd2aae7c9065 (patch) | |
tree | 23bd6e44c31b45fde7d92bbe7620329a61c1fcf5 /test/519-bound-load-class | |
parent | 79bf0b8e9c704e63029bb3badf9c4872484a827b (diff) |
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
Diffstat (limited to 'test/519-bound-load-class')
-rw-r--r-- | test/519-bound-load-class/Android.bp | 15 | ||||
-rw-r--r-- | test/519-bound-load-class/expected-stderr.txt | 0 |
2 files changed, 13 insertions, 2 deletions
diff --git a/test/519-bound-load-class/Android.bp b/test/519-bound-load-class/Android.bp index 0c373565a7..a7520bec95 100644 --- a/test/519-bound-load-class/Android.bp +++ b/test/519-bound-load-class/Android.bp @@ -8,13 +8,24 @@ java_test { defaults: ["art-run-test-defaults"], test_config_template: ":art-run-test-target-template", srcs: ["src/**/*.java"], - data: [":art-run-test-519-bound-load-class-expected-stdout"], + data: [ + ":art-run-test-519-bound-load-class-expected-stdout", + ":art-run-test-519-bound-load-class-expected-stderr", + ], } -// Test's expected output. +// Test's expected standard output. genrule { name: "art-run-test-519-bound-load-class-expected-stdout", out: ["art-run-test-519-bound-load-class-expected-stdout.txt"], srcs: ["expected-stdout.txt"], cmd: "cp -f $(in) $(out)", } + +// Test's expected standard error. +genrule { + name: "art-run-test-519-bound-load-class-expected-stderr", + out: ["art-run-test-519-bound-load-class-expected-stderr.txt"], + srcs: ["expected-stderr.txt"], + cmd: "cp -f $(in) $(out)", +} diff --git a/test/519-bound-load-class/expected-stderr.txt b/test/519-bound-load-class/expected-stderr.txt new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/test/519-bound-load-class/expected-stderr.txt |