Commit 9b579777 authored by Pauli's avatar Pauli Committed by Rich Salz
Browse files

Fix preprocessor indentation.


Rework main() to be in the style of the other conditional tests.

Reviewed-by: default avatarTim Hudson <tjh@openssl.org>
Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3711)
parent 729ef856
Loading
Loading
Loading
Loading
+11 −12
Original line number Diff line number Diff line
/*
 * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
 * Copyright 2016-2017 The OpenSSL Project Authors. All Rights Reserved.
 *
 * Licensed under the OpenSSL license (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
@@ -499,9 +499,11 @@ static int test_ctlog_from_base64(void)
        return 0;
    return 1;
}
#endif

int test_main(int argc, char *argv[])
{
#ifndef OPENSSL_NO_CT
    if ((ct_dir = getenv("CT_DIR")) == NULL)
        ct_dir = "ct";
    if ((certs_dir = getenv("CERTS_DIR")) == NULL)
@@ -519,11 +521,8 @@ int test_main(int argc, char *argv[])
    ADD_TEST(test_ctlog_from_base64);

    return run_tests(argv[0]);
}
#else
int test_main(int argc, char *argv[])
{
    printf("No CT support\n");
    return 0;
}
    return EXIT_SUCCESS;
#endif
}