mirror of https://github.com/ecmwf/eccodes.git
SD-103535: Revert
This commit is contained in:
parent
6f59e109ba
commit
3589b8c280
|
@ -248,7 +248,7 @@ static void test_assertion_catching()
|
||||||
list = string_split(empty, " ");
|
list = string_split(empty, " ");
|
||||||
|
|
||||||
Assert(assertion_caught == 1);
|
Assert(assertion_caught == 1);
|
||||||
Assert( list == NULL );
|
Assert(list == NULL);
|
||||||
|
|
||||||
/* Restore everything */
|
/* Restore everything */
|
||||||
codes_set_codes_assertion_failed_proc(NULL);
|
codes_set_codes_assertion_failed_proc(NULL);
|
||||||
|
@ -858,15 +858,17 @@ static void test_grib_get_binary_scale_fact()
|
||||||
{
|
{
|
||||||
printf("Running %s ...\n", __func__);
|
printf("Running %s ...\n", __func__);
|
||||||
int err = 0;
|
int err = 0;
|
||||||
long result = 0;
|
long result = grib_get_binary_scale_fact(INFINITY, 0, 0, &err);
|
||||||
|
Assert(err == GRIB_OUT_OF_RANGE);
|
||||||
|
Assert(result == 0);
|
||||||
|
|
||||||
result = grib_get_binary_scale_fact(100, 0, 65, &err); // bpv too big
|
result = grib_get_binary_scale_fact(100, 0, 65, &err); // bpv too big
|
||||||
Assert( err == GRIB_OUT_OF_RANGE);
|
Assert(err == GRIB_OUT_OF_RANGE);
|
||||||
Assert( result == 0 );
|
Assert(result == 0);
|
||||||
|
|
||||||
result = grib_get_binary_scale_fact(100, 0, 0, &err); // bpv 0
|
result = grib_get_binary_scale_fact(100, 0, 0, &err); // bpv 0
|
||||||
Assert( err == GRIB_ENCODING_ERROR);
|
Assert(err == GRIB_ENCODING_ERROR);
|
||||||
Assert( result == 0 );
|
Assert(result == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_filepool()
|
static void test_filepool()
|
||||||
|
|
Loading…
Reference in New Issue