1: const char help[] = "Test dropping PetscLogEventEnd()"; 3: #include <petsc.h> 5: int main(int argc, char **argv) 6: { 7: FILE *file; 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); 15: PetscCall(PetscFinalize()); 16: return 0; 17: } 19: /*TEST 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 28: TEST*/