[PATCH openEuler-22.03-LTS-SP1 3/3] of: unittest: Fix compile in the non-dynamic case