channels: add a unit test to check for simple leaks

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Regenerate OASIS

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Fix a typo in the unit test

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Fix an off-by-one in the unit test

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Fix an fd leak spotted by the unit test

All the unit tests now pass again (vacuously true before, now
a single solitary test passes)

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
test: add some unit tests for channel passing

One of the tests currently fails.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
test: improve the proxy code and unit test

The test still doesn't pass: this particular method of channel
passing shouldn't be used.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #11 from djs55/channel-passing

Fix fd leak, add unit test for channel passing