Skip to content

Commit

Permalink
[TEST] Changed timeout assertion type in test 71_14. Increased POLL_I…
Browse files Browse the repository at this point in the history
…NTERVAL

Former-commit-id: 9f3949e
  • Loading branch information
AVSurfer123 committed Aug 22, 2020
1 parent 02130c0 commit 59df145
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion runtime_util/runtime_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#define CHALLENGE_SOCKET "/tmp/challenge.sock"

// The interval (microseconds) at which we wait between detecting connects/disconnects
#define POLL_INTERVAL 100000
#define POLL_INTERVAL 200000

// enumerated names of processes
typedef enum process {
Expand Down
2 changes: 1 addition & 1 deletion shm_wrapper/shm_stop.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ int main() {

// Using shm_init() calls shm_stop() automatically on process exit, so semaphores and shm blocks will be closed on exit

log_printf(INFO, "SHM destroyed. Runtime Funtime is no more");
log_printf(INFO, "SHM destroyed. RUNTIME FUNTIME HAD TOO MUCH FUN!!!");

/*
* Under normal production circumstances, this program should never be run (it only runs when net_handler, executor, or dev_handler
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/tc_71_13.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int main() {
}
for (int i = 0; i < NUM_TO_CONNECT; i++) {
sprintf(expected_output, "UnstableTestDevice (0x%016llX) timed out!", (uint64_t) i);
in_rest_of_output(expected_output);
in_output(expected_output);
}
in_rest_of_output(no_device);
return 0;
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/tc_71_14.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ int main() {
// All UnstableTestDevices should time out
for (int i = NUM_GENERAL; i < NUM_UNSTABLE + NUM_GENERAL; i++) {
sprintf(expected_output, "UnstableTestDevice (0x%016llX) timed out!", (uint64_t) i);
in_rest_of_output(expected_output);
in_output(expected_output);
}
// GeneralTestDevices remain in shm after UnstableTestDevices time out
for (int i = 0; i < NUM_GENERAL; i++) {
Expand Down

0 comments on commit 59df145

Please sign in to comment.