Solve the error effect of clipping in cpp-tests & lua-tests.