diff --git a/plugins/pyloader/testsuite/test-python_loader.cc b/plugins/pyloader/testsuite/test-python_loader.cc index 5e07089..6d0e165 100644 --- a/plugins/pyloader/testsuite/test-python_loader.cc +++ b/plugins/pyloader/testsuite/test-python_loader.cc @@ -53,6 +53,8 @@ main(int argc, char** argv) { using namespace sgpem; using namespace std; + int successes = 0; + if(argc != 2) { std::cout << "[EE] Usage:\n\t" << argv[0] << " path/to/uninstalled/policies" << std::endl; @@ -73,6 +75,7 @@ main(int argc, char** argv) { catch(UserInterruptException e) { cout << "configure: Caught UserInterruptException" << endl; + successes++; } @@ -84,6 +87,7 @@ main(int argc, char** argv) { catch(UserInterruptException e) { cout << "is_preemptive: Caught UserInterruptException" << endl; + successes++; } try @@ -94,6 +98,7 @@ main(int argc, char** argv) { catch(UserInterruptException e) { cout << "get_time_slice: Caught UserInterruptException" << endl; + successes++; } @@ -106,7 +111,11 @@ main(int argc, char** argv) { catch(UserInterruptException e) { cout << "sort_queue: Caught UserInterruptException" << endl; + successes++; } + cout << "Result: catched " << successes + << " exceptions out of 4." << endl; + exit(0); }