From 6cb21552c97d0b8987b5defdd7407eda9b8e60bc Mon Sep 17 00:00:00 2001 From: Calin Juravle Date: Mon, 19 Dec 2016 15:38:07 +0000 Subject: [PATCH] Fix 616-cha assumptions. 616-cha relies that some classes are not loaded at startup. Disable the app image to prevent that. Test: ART_TEST_JIT=true m test-art-host-run-test-616-cha Change-Id: Ie74f2dbeae0f898d42051f248492126615ffdad6 --- test/616-cha/run | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/616-cha/run diff --git a/test/616-cha/run b/test/616-cha/run new file mode 100644 index 000000000..9c64c7dc6 --- /dev/null +++ b/test/616-cha/run @@ -0,0 +1,18 @@ +#!/bin/bash +# +# Copyright (C) 2016 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Run without an app image to prevent the classes to be loaded at startup. +exec ${RUN} "${@}" --no-app-image -- 2.11.0