modify ShaderTest.cpp not crah to autotest.

modify ShaderTest.cpp not crah to autotest.[ci skip]