xref: /petsc/src/sys/tests/ex73.c (revision 6fb2f599ab2e484becc7b2e03a9d4775e64bfc8c)
1*8c0ebe3fSBarry Smith const char help[] = "Test dropping PetscLogEventEnd()";
2*8c0ebe3fSBarry Smith 
3*8c0ebe3fSBarry Smith #include <petsc.h>
4*8c0ebe3fSBarry Smith 
main(int argc,char ** argv)5*8c0ebe3fSBarry Smith int main(int argc, char **argv)
6*8c0ebe3fSBarry Smith {
7*8c0ebe3fSBarry Smith   FILE *file;
8*8c0ebe3fSBarry Smith 
9*8c0ebe3fSBarry Smith   PetscCall(PetscInitialize(&argc, &argv, NULL, help));
10*8c0ebe3fSBarry Smith   file = fopen("test", "w");
11*8c0ebe3fSBarry Smith   if (argc < 10) fclose(file);
12*8c0ebe3fSBarry Smith   PetscCall(PetscFPrintf(PETSC_COMM_WORLD, file, "Testing error handling with bad \n"));
13*8c0ebe3fSBarry Smith   if (argc >= 10) fclose(file);
14*8c0ebe3fSBarry Smith 
15*8c0ebe3fSBarry Smith   PetscCall(PetscFinalize());
16*8c0ebe3fSBarry Smith   return 0;
17*8c0ebe3fSBarry Smith }
18*8c0ebe3fSBarry Smith 
19*8c0ebe3fSBarry Smith /*TEST
20*8c0ebe3fSBarry Smith 
21*8c0ebe3fSBarry Smith   test:
22*8c0ebe3fSBarry Smith     suffix: 0
23*8c0ebe3fSBarry Smith     requires: !defined(PETSCTEST_VALGRIND)
24*8c0ebe3fSBarry Smith     args: -petsc_ci_portable_error_output -error_output_stdout
25*8c0ebe3fSBarry Smith     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*8c0ebe3fSBarry Smith     TODO: Too many odd ball failures that are not reproducible in alt files
27*8c0ebe3fSBarry Smith 
28*8c0ebe3fSBarry Smith TEST*/
29