Skip to content

Commit

Permalink
Removing sleeps from unit tests, exit should be clean now even for ve…
Browse files Browse the repository at this point in the history
…ry short programs.
  • Loading branch information
khuck committed Apr 10, 2024
1 parent 1d19a72 commit 1f2bf24
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/unit_tests/C++/apex_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ int main (int argc, char** argv) {
APEX_UNUSED(argv);
apex::init("apex::init unit test", 0, 1);
apex::apex_options::use_screen_output(true);
sleep(1);
apex::finalize();
apex::cleanup();
return 0;
Expand Down
1 change: 0 additions & 1 deletion src/unit_tests/C++/apex_init_args.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ int main (int argc, char** argv) {
APEX_UNUSED(argv);
apex::init("apex::init unit test", 0, 1);
apex::apex_options::use_screen_output(true);
sleep(1);
apex::finalize();
apex::cleanup();
return 0;
Expand Down
1 change: 0 additions & 1 deletion src/unit_tests/C++/apex_pthread_flood.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ int main(int argc, char **argv)
test_numthreads = strtoul(argv[1],NULL,0);
}
apex::apex_options::use_screen_output(true);
sleep(1); // if we don't sleep, the proc_read thread won't have time to read anything.

apex::scoped_timer proxy(__func__);
printf("PID of this process: %d\n", getpid());
Expand Down
1 change: 0 additions & 1 deletion src/unit_tests/C++/apex_version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ int main (int argc, char** argv) {
APEX_UNUSED(argv);
apex::init("apex::version unit test", 0, 1);
std::cout << apex::version() << std::endl;
sleep(1);
apex::finalize();
apex::cleanup();
return 0;
Expand Down
1 change: 0 additions & 1 deletion src/unit_tests/C/apex_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
int main (int argc, char** argv) {
apex_init("apex_init unit test", 0, 1);
apex_set_use_screen_output(1);
sleep(1);
apex_finalize();
apex_cleanup();
return 0;
Expand Down
1 change: 0 additions & 1 deletion src/unit_tests/C/apex_init_args.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
int main (int argc, char** argv) {
apex_init("apex_init_args unit test", 0, 1);
apex_set_use_screen_output(1);
sleep(1);
apex_finalize();
apex_cleanup();
return 0;
Expand Down
1 change: 0 additions & 1 deletion src/unit_tests/C/apex_version.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
int main (int argc, char** argv) {
apex_init("apex_version unit test", 0, 1);
printf("APEX Version : %s\n", apex_version());
sleep(1);
apex_finalize();
apex_cleanup();
return 0;
Expand Down

0 comments on commit 1f2bf24

Please sign in to comment.