main.cpp 662 B

1234567891011121314151617181920212223242526
  1. // Copyright (c) 2006-2018 Maxim Khizhinsky
  2. //
  3. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. // file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #include <cds_test/ext_gtest.h>
  6. #include <cds/init.h>
  7. #include <cds_test/fixture.h>
  8. namespace cds_test {
  9. /*static*/ std::random_device fixture::random_dev_;
  10. /*static*/ std::mt19937 fixture::random_gen_( random_dev_());
  11. } // namespace cds_test
  12. int main( int argc, char **argv )
  13. {
  14. int result;
  15. cds::Initialize();
  16. {
  17. ::testing::InitGoogleTest( &argc, argv );
  18. result = RUN_ALL_TESTS();
  19. }
  20. cds::Terminate();
  21. return result;
  22. }