summaryrefslogtreecommitdiff
path: root/libnativeloader/library_namespaces.cpp
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2021-08-26 20:52:44 +0100
committer David Srbecky <dsrbecky@google.com> 2021-08-29 11:44:21 +0000
commit059210dd634396b9a8d8b2cefb8637791894cb3c (patch)
tree267dd5cf3c0cced92e8d98573b66eaf0360bfafe /libnativeloader/library_namespaces.cpp
parent95bb995004cb8241196390ba1680811b7a428770 (diff)
Make smali compilations deterministic
The smali compilation in run-tests are non-deterministic. However, we don't observe that much, as most tests are dex-merged by D8 which normalize it back to deterministic. The non-determinism is only observed for few tests where well-intended short-cut bypasses the dex merger. Let's remove that short-cut to get deterministic build output. Also pass the proper test's API level to the dex merger. This avoids bumping dex file version to maximum as side effect of the no-op merge. It also avoids excessive log spam as the previous input was invalid. And it avoids bumping the dex file version to max for tests that need merge, which gives us more version variety for tests. Bug: 147814778 Test: test.py --host Change-Id: I4af262aef3305a90d8cb8d14d87f7c52b9dd734a
Diffstat (limited to 'libnativeloader/library_namespaces.cpp')
0 files changed, 0 insertions, 0 deletions