13 #include <ecl/config/ecl.hpp> 14 #if defined(ECL_IS_POSIX) 20 #include <gtest/gtest.h> 21 #include "../../include/ecl/threads/priority.hpp" 28 using ecl::set_priority;
44 TEST(PriorityTest,statistics) {
45 std::string diagnostics = ecl::print_priority_diagnostics();
49 TEST(PriorityTest,setPosixPriorities) {
57 }
catch (
const StandardException &e ) {
60 std::cout <<
"Do not have permission for the higher level priorities." << std::endl;
64 TEST(PriorityTest,setPosixRealTimePriorities) {
71 }
catch (
const StandardException &e ) {
75 std::cout <<
"Do not have permission for real time scheduling priorities." << std::endl;
83 int main(
int argc,
char **argv) {
85 testing::InitGoogleTest(&argc,argv);
86 return RUN_ALL_TESTS();
96 int main(
int argc,
char **argv) {
98 std::cout <<
"Currently not supported on your platform." << std::endl;
TEST(TypeTests, fundamentals)
int main(int argc, char **argv)