That is where test tools like vacuum testers come in. Of course on most petrol engines the vacuum is manifold provided and a leak causes engine running problems which helps in diagnostics