Fix the "x = a + b" allocation failure test. Since a and b were

equal, mpi_sub_abs() would return early and the test would never
exercise the mpi_grow() call which is intended to fail.
This commit is contained in:
Dag-Erling Smørgrav 2014-12-30 16:46:44 +00:00 committed by des
parent 0d483f20ab
commit f18b915b67

View file

@ -1350,7 +1350,7 @@ t_mpi_sub_fail(char **desc CRYB_UNUSED, void *arg CRYB_UNUSED)
cryb_mpi x = CRYB_MPI_ZERO;
int ret = 1;
mpi_load(&a, large_v, sizeof large_v);
mpi_load(&a, small_v, sizeof small_v);
mpi_load(&b, large_v, sizeof large_v);
mpi_set(&x, 0x20140901);
mpi_set(&e, 0x20140901);