Add a new test: redirect CUDA's printf to log file.