ECC-604: Print out what each test does

This commit is contained in:
Shahram Najm 2018-05-08 18:01:14 +01:00
parent 25acd14b91
commit 2a16a080c0
3 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*
* Test for ECC-604:
* Test for ECC-604: Each thread creates a new GRIB handle, clones it and writes it out
*/
#include <time.h>
#include <pthread.h>
@ -99,6 +99,7 @@ int main(int argc, char **argv)
}
if (parallel) {
printf("Running parallel in %ld threads. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
printf("Each thread creates a new GRIB handle, clones it and writes it out\n");
} else {
printf("Running sequentially in %ld runs. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
}

View File

@ -1,5 +1,6 @@
/*
* Test for ECC-604: This version does not clone the GRIB handle
* Test for ECC-604: Each thread creates a new GRIB handle and writes it out.
* It does not clone the handle.
*/
#include <time.h>
@ -96,6 +97,7 @@ int main(int argc, char **argv)
}
if (parallel) {
printf("Running parallel in %ld threads. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
printf("Each thread creates a new GRIB handle and writes it out. No cloning the handle\n");
} else {
printf("Running sequentially in %ld runs. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
}

View File

@ -1,5 +1,6 @@
/*
* Test for ECC-604: No output writing
* Test for ECC-604: Each thread creates a new GRIB handle and clones it.
* No output writing.
*/
#include <time.h>
#include <pthread.h>
@ -94,6 +95,7 @@ int main(int argc, char **argv)
}
if (parallel) {
printf("Running parallel in %ld threads. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
printf("Each thread creates a new GRIB handle and clones it. No output writing\n");
} else {
printf("Running sequentially in %ld runs. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
}