Fix ctrl reinit problem.
Prevent a buffer overflow on bad shader.
Remove compare logic from test.py, use --compare.