diff --git a/examples/C/grib_pthreads.c b/examples/C/grib_pthreads.c index 443315d4a..15cdcb669 100644 --- a/examples/C/grib_pthreads.c +++ b/examples/C/grib_pthreads.c @@ -35,7 +35,7 @@ static void* process_grib(void* threadID) CODES_CHECK(codes_set_string(h,"indicatorOfUnitOfTimeRange", "s", &str_len),0); CODES_CHECK(codes_set_string(h,"stepUnits", "s", &str_len),0); CODES_CHECK(codes_set_long(h, "endStep", 86400), 0); - CODES_CHECK(codes_set_long(h,"centre", 80),0); + //CODES_CHECK(codes_set_long(h,"centre", 80),0); CODES_CHECK(codes_get_long(h,"endStep", &step),0); CODES_CHECK(codes_get_string(h, "indicatorOfUnitOfTimeRange", mystring, &str_len),0); @@ -64,6 +64,7 @@ int main(int argc, char** argv) printf("Creating thread %ld\n", i); error = pthread_create(&threads[i], NULL, process_grib, (void *)i); if (error) { + assert(0); return 1; } } diff --git a/tests/grib_ecc-604.sh b/tests/grib_ecc-604.sh index 964983658..52c7be28d 100755 --- a/tests/grib_ecc-604.sh +++ b/tests/grib_ecc-604.sh @@ -41,6 +41,11 @@ time ${test_dir}/grib_ecc-604 par $input $NUM_THREADS $NUM_ITER # break # fi #done +echo "Checking every output file is identical..." +set +x +res=`cksum $OUTPUT/output_file_* | awk '{print $1}' | sort -u` +set -x +[ "$res" = "2572910830" ] # Clean up cd $test_dir