Force a GC in system_server before running ApexTestCases
Once boot completes, system_server might still have dangling reference
to IApexService, meaning that service manager won't stop apexd. As a
result, test apexes pushed via PushFilePreparer won't be scanned, and
test cases in apexservice_test.cpp will fail.
As a quick fix, force a GC in system_server, which would delete the
dangling referencing and allow service manager to stop apexd.
Note: this is a quick workaround to minimize change made in rvc-dev. In
aosp a proper solution solution will be implemented.
Test: atest ApexTestCases
Bug: 147102864
Change-Id: I944eed055f4a8c6252190f581ae5d3de9e471dcb
1 file changed