More robust parsing of /proc/meminfo

The test assumed that an entry (ex: foo: 100 kB) in /proc/meminfo
doesn't have a tab character. That assumption was broken when the kernel
starts to emit an entry with a tab chracter. Specifically, the following
entry was added with a tab character(s) in front of the number.

SecPageTables:         0 kB

Fixing this by matching a line with a regex.

Bug: N/A
Test: run com.android.microdroid.test.MicrodroidHostTests#testMicrodroidRamUsage
with the updated kernel

Change-Id: I6061c0adb382e2513bf2abbfea5c9219800f55f8
1 file changed
tree: 513fb994a8f483eb62d9d8cd228fbf2b750b1ed2
  1. apex/
  2. apkdmverity/
  3. authfs/
  4. avmd/
  5. compos/
  6. demo/
  7. docs/
  8. encryptedstore/
  9. javalib/
  10. launcher/
  11. libs/
  12. microdroid/
  13. microdroid_manager/
  14. pvmfw/
  15. rialto/
  16. tests/
  17. virtualizationservice/
  18. vm/
  19. vm_payload/
  20. vmbase/
  21. vmclient/
  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.