diff --git a/test/main.cpp b/test/main.cpp index fff551a..c63d5ac 100755 --- a/test/main.cpp +++ b/test/main.cpp @@ -565,7 +565,7 @@ void func(std::size_t n) { for(std::size_t j = 0; j < 100; ++j) { - ulog.log("thread %, line %", n, j); + ulog.log_info("thread %, line %", n, j); } std::cout << "end of thread " << n << std::endl; @@ -573,10 +573,10 @@ void func(std::size_t n) int main(int argc, char **argv) { - ::testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); + //::testing::InitGoogleTest(&argc, argv); + //return RUN_ALL_TESTS(); - //const std::size_t threadsCount = 2; + const std::size_t threadsCount = 2; //int one = 1; //double two = 2.5; @@ -584,7 +584,6 @@ int main(int argc, char **argv) //ulog.log("Hello world!"); //ulog.log("some string: %", "qwe!"); - /* std::thread threads[threadsCount]; for(std::size_t i = 0; i < threadsCount; ++i) { @@ -595,7 +594,9 @@ int main(int argc, char **argv) for(std::size_t i = 0; i < threadsCount; ++i) threads[i].join(); + + int n = 0; + std::cin >> n; - return 0; - */ + return 0; }