OSDN Git Service

Revert "Revert "Ensure dex file are extracted and verified at load time""
authorCalin Juravle <calin@google.com>
Thu, 4 May 2017 01:57:17 +0000 (01:57 +0000)
committerCalin Juravle <calin@google.com>
Fri, 5 May 2017 15:56:55 +0000 (08:56 -0700)
commit7c0a418d495cd0a14904c10ea49255a867107dd0
treee9af4c985427844a34b36db248e0d848d2ce1d83
parent0aaac3758145b16805309fc8b3dcf285925f26c8
Revert "Revert "Ensure dex file are extracted and verified at load time""

The issue was caused by running device-gtests as root (which will always
have full write access everywhere).

For now, disable the tests that rely on file permissions when running as
root.

Test: m test-art-target-gtest-oat_file_assistant_test
Bug: 36605597
Bug: 36824842

This reverts commit 9bfc6bb1f44797aec19a151e47c0902ef2516095.

(cherry picked from commit 357c66dcc20ce15108ecf05f5ecf69a80b383dab)

Change-Id: I73820b8ff9d78af8d9bcb232c8345a07c5788539
runtime/dex2oat_environment_test.h
runtime/dexopt_test.cc
runtime/oat_file_assistant.cc
runtime/oat_file_assistant.h
runtime/oat_file_assistant_test.cc
runtime/oat_file_manager.cc