summaryrefslogtreecommitdiff
path: root/runtime/exec_utils.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add an overload of ExecAndReturnCode taking a timeoutOrion Hodson2021-01-181-24/+100
| | | | | | | | Enables callers to timeout waiting on a subprocess. Bug: 177432913 Test: test-art-host-gtest-art_runtime_tests32 Change-Id: I7a27e0ca4679f45daf815d7e2563ca9b723bd701
* ART: Fix or disable some tidy warnings.Andreas Gampe2017-06-081-1/+0
| | | | | | | | | | | | | | | Add a strlcpy shim for the host, so we can use strlcpy instead of strcpy everywhere. Fixed warnings include unused-decls, (some) unreachable code, use after std::move, string char append, leaks, (some) excessive padding. Disable some warnings we cannot or do not want to avoid. Bug: 32619234 Test: m Test: m test-art-host Change-Id: Ie191985eebb160d94b988b41735d4f0a1fa1b54e
* Separate art::Exec from utilsDavid Sehr2017-02-011-0/+102
The rest of utils.cc does not depend on art::Runtime. This separates the part dependent on that class, so that including utils.cc in the build does not require the entire Runtime. Another preparatory cleanup to getting tools to build on Windows. Bug: 22322814 Test: test-art Change-Id: I194ff363fc2ab87e5311ecea6973a2d0fad2621d