redirect output from gcc to test output