目录

What should I do if a cppcrash is reported during the test run because the ohosTest file references the method of the entry module?

Symptom

If the ohosTest file references the method of the entry module, which contains worker loading in common mode (for example, "entry/ets/workers/Worker.ets"), cppcrash is reported during the test run.

Solution

Change the path mode of the instantiated worker in entry to the path loading mode with @ or relative path loading mode. Then, run the test again.