move GF2m tests to the end
authorBodo Möller <bodo@openssl.org>
Fri, 2 Aug 2002 14:49:59 +0000 (14:49 +0000)
committerBodo Möller <bodo@openssl.org>
Fri, 2 Aug 2002 14:49:59 +0000 (14:49 +0000)
crypto/bn/bntest.c

index 377b5ba59047b03558414a0fbf9e2a0e113fb66e..9026b2888d6b83395dcbe37536e6a287368231e1 100644 (file)
@@ -261,6 +261,14 @@ int main(int argc, char *argv[])
        if (!test_exp(out,ctx)) goto err;
        BIO_flush(out);
 
+       message(out,"BN_kronecker");
+       if (!test_kron(out,ctx)) goto err;
+       BIO_flush(out);
+
+       message(out,"BN_mod_sqrt");
+       if (!test_sqrt(out,ctx)) goto err;
+       BIO_flush(out);
+
        message(out,"BN_GF2m_add");
        if (!test_gf2m_add(out)) goto err;
        BIO_flush(out);
@@ -297,14 +305,6 @@ int main(int argc, char *argv[])
        if (!test_gf2m_mod_solve_quad(out,ctx)) goto err;
        BIO_flush(out);
 
-       message(out,"BN_kronecker");
-       if (!test_kron(out,ctx)) goto err;
-       BIO_flush(out);
-
-       message(out,"BN_mod_sqrt");
-       if (!test_sqrt(out,ctx)) goto err;
-       BIO_flush(out);
-
        BN_CTX_free(ctx);
        BIO_free(out);