Make ClassLoaderContextTest pass when OUT_DIR is used

If one uses OUT_DIR when building android and it is not a subdirectory
of ANDROID_BUILD_TOP then the ClassLoaderContextTest cannot be run
successfully from make. We change the test so it will print an error
and pass anyway in a situation to make testing easier.

Test: OUT_DIR=/something/not/near/tree ./test.py --host -j50
Bug: 72042237
Change-Id: Ic55d161350f064facbdb6329c20ab53c96067a1b
1 file changed