1 const char help[] = "Test dropping PetscLogEventEnd()"; 2 3 #include <petsc.h> 4 main(int argc,char ** argv)5int main(int argc, char **argv) 6 { 7 FILE *file; 8 9 PetscCall(PetscInitialize(&argc, &argv, NULL, help)); 10 file = fopen("test", "w"); 11 if (argc < 10) fclose(file); 12 PetscCall(PetscFPrintf(PETSC_COMM_WORLD, file, "Testing error handling with bad \n")); 13 if (argc >= 10) fclose(file); 14 15 PetscCall(PetscFinalize()); 16 return 0; 17 } 18 19 /*TEST 20 21 test: 22 suffix: 0 23 requires: !defined(PETSCTEST_VALGRIND) 24 args: -petsc_ci_portable_error_output -error_output_stdout 25 filter: grep -E -v "(memory block|leaked context|not freed before MPI_Finalize|Could be the program crashed|PETSc Option Table entries|source: environment)" 26 TODO: Too many odd ball failures that are not reproducible in alt files 27 28 TEST*/ 29