Don't assert from executor

If assertions fail in the executor thread, the test fails uncleanly and
can even kill the test app causing subsequent tests to fail with
infrastructure errors.

Resolve this by only asserting on the main thread, saving the values to
check out of the executor thread.

Test: atest MicrodroidTestApp
Bug: 218935426
Change-Id: I8289e6248934acdf67e37fa5e01c037a45a244b3
1 file changed
tree: b03dc8d9acd5903ae818f460d9c22e0c5a1927d2
  1. .prebuilt_info/
  2. apex/
  3. apkdmverity/
  4. apkverify/
  5. authfs/
  6. binder_common/
  7. compos/
  8. demo/
  9. docs/
  10. idsig/
  11. javalib/
  12. launcher/
  13. libs/
  14. microdroid/
  15. microdroid_manager/
  16. pvmfw/
  17. statslog_virtualization/
  18. tests/
  19. virtualizationservice/
  20. vm/
  21. vmconfig/
  22. zipfuse/
  23. .clang-format
  24. .gitignore
  25. Android.bp
  26. OWNERS
  27. PREUPLOAD.cfg
  28. README.md
  29. TEST_MAPPING
README.md

Virtualization

This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.