I think you'll pass the inspection but probably not a safe thing to do with regards to the headlights. I have a 12" long crack on my windshield and passed without a problem.
A few years ago, they failed me because I had a screw in the very outer edge of the tire. I pulled it out and went right back on line and then they passed me. I heard that now a days, you can go through with a wrench on the steering column instead of the steering wheel and they would pass since they don't check for safety anymore. I haven't tried this myself but would love to see if it would actually pass.