Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4873823d authored by Matthew Reynolds's avatar Matthew Reynolds
Browse files

Changed isRoboletricTest() to check against VM.

The original isRobolectricTest() used Build.os.HARDWARE, but sometimes
the Robolectric environment isn't initialized, so we test against the
VM which is a bit more robust.

Bug: 346864770
Flag: TEST_ONLY
Test: tested manually with atest
Change-Id: Ie0c117210e899fe1ddb94f66dae551d44c768915
parent 8ed5bdf2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment