Another year, I took my car in for a brake fluid change and state inspection. They failed the inspection because the rear brake rotors were below the minimum thickness. I replaced the rotors and pads and took it back in. They passed it and put the sticker on.
On the way home, I get the low brake fluid warning light and find that one of the front calipers was leaking brake fluid. So I had to replace the caliper as well.
Essentially, they'll fail inspection even if it's not a real safety issue (blinking parking brake indicator light), but miss actual safety issues (leaking caliper during a brake fluid change service).