Fix socket bind collisions in manager_tests, race condition bind/listen/subscribe and memory leaks (#18)

* Fix socket bind collisions in manager_tests

* bind manager sockets before connecting to the store

* fix memory leak in tests

* fix valgrind early process termination

* fix bind/listen/subscribe race condition

* fix photon

* fix other tests

* make it that all of common is tested

* fix clang-format

* fix
This commit is contained in:
Philipp Moritz
2016-11-02 00:09:04 -07:00
committed by Robert Nishihara
parent d56c1a0b9c
commit 2068587af8
16 changed files with 147 additions and 73 deletions
-23
View File
@@ -1,23 +0,0 @@
#ifndef EXAMPLE_TASK_H
#define EXAMPLE_TASK_H
#include "task.h"
task_spec *example_task(void) {
function_id func_id = globally_unique_id();
task_spec *task = alloc_task_spec(func_id, 2, 1, 0);
task_args_add_ref(task, globally_unique_id());
task_args_add_ref(task, globally_unique_id());
return task;
}
task_instance *example_task_instance(void) {
task_iid iid = globally_unique_id();
task_spec *spec = example_task();
task_instance *instance =
make_task_instance(iid, spec, TASK_STATUS_WAITING, NIL_ID);
free_task_spec(spec);
return instance;
}
#endif