#include <stdio.h>
#include <string.h>
#include <gtest/gtest.h>
#include <openssl/rand.h>
#include "abi_test.h"
#include "gtest_main.h"
#include "../internal.h"
int main(int argc, char **argv) {
testing::InitGoogleTest(&argc, argv);
bssl::SetupGoogleTest();
bool unwind_tests = true;
for (int i = 1; i < argc; i++) {
#if !defined(OPENSSL_WINDOWS)
if (strcmp(argv[i], "--fork_unsafe_buffering") == 0) {
RAND_enable_fork_unsafe_buffering(-1);
}
#endif
if (strcmp(argv[i], "--no_unwind_tests") == 0) {
unwind_tests = false;
}
}
if (unwind_tests) {
abi_test::EnableUnwindTests();
}
return RUN_ALL_TESTS();
}