COMMON: Modified common unit test build to link pthread

This was missing pthread linkage which caused a build failure on Fedora 19.

Signed-off-by: Frank Quinn <fquinn.ni@gmail.com>
MAMA: Modified unit test build script to link correct sources

With the migration to scons, looks like we forgot to update the new
sources correctly - this updates this with the correct source file
names.

Signed-off-by: Frank Quinn <fquinn.ni@gmail.com>
TESTTOOLS: Resolving issues with capturereplay rewind functionality.

Resolving an issue which occurs with capturereplay's rewind function,
making use of MAMA Playbacks built in rewind.

Signed-off-by: Damian Maguire <dmaguire@nyx.com>
TESTTOOLS: Improve logging for capturereplay.

Some improvements to the manner in which capturereplay logs it's
current activities. Enables MAMA logging at MAMA_LOG_LEVEL_NORMAL,
so additional application logging is output to stderr by default.

Signed-off-by: Damian Maguire <dmaguire@nyx.com>
MAMAC: Fix playback file parser struct to allow large files

Change the myLastPos variable in the mamaPlaybackFileParser struct
to enable MAMA playback tools to process files larger than 2GB.

Signed-off-by: Damian Maguire <dmaguire@nyx.com>
QPIDMSG: Fixes for payload to conform with standard unit tests

Added Implementation for qpidmsgPayload_getByteSize, modified
qpidmsgPayload_toString to return NULL on error rather than an empty
string and removed enclosing round brackets in toString output. Also
added some further function parameter validation.

Signed-off-by: Frank Quinn <fquinn.ni@gmail.com>
QPIDMSG: Fixed bug in qpidmsgFieldPayload_getI32

Was previously casting to the wrong time which caused problems with the
value returned. Now fixed along with some further function parameter
validation and return code standardisation added.

Signed-off-by: Frank Quinn <fquinn.ni@gmail.com>
QPID: Split out bridge message creation to permit NULL parent

The publisher depends on a NULL parent for the bridge message it uses
for encoding messages for publishing, but this is illegal in the MAMA
interface, so a new function was created which the publisher can then
use, while honoring the MAMA standard NULL check for the parent.

Signed-off-by: Frank Quinn <fquinn.ni@gmail.com>
QPID: Added Subscription_isTportDisconnected and some small changes

Added support for isTportDisconnected, Modified default URLs to include
non-default qpid ports to avoid conflicts with brokers running locally,
and added some new return code standardization and function argument
validation.

Signed-off-by: Frank Quinn <fquinn.ni@gmail.com>
UNITTEST Return Code Standardisation and NULL checks for MAMA msg and msgfield

Modified functions to NULL check where the pointer is rereferenced within
the MAMA function and standardise on MAMA_STATUS_NULL_ARG in situations
where a NULL argument is provided.

Signed-off-by: Frank Quinn <fquinn.ni@gmail.com>
UNITTEST: Modified payload vector test return code checks

Tests previously assumed that calling update for a fid which didn't
already exist should return an error code when in fact it should create
a new field.

Signed-off-by: Frank Quinn <fquinn.ni@gmail.com>
UNITTEST: Fixed tests for payloadgeneraltests and made some optional

Also fixed a few return codes expected which were causing spurious
fails.

Fixed unit tests for:

- IterateFieldsValid

Made the following tests optional:

- CreateForTemplateValid
- GetByteSizeValid
- GetSendSubjectInValidMsg

Removed invalid tests:

- IterateFieldsInValidClosure

Signed-off-by: Frank Quinn <fquinn.ni@gmail.com>
UNITTEST: Removed redundant code in fieldcompositetests

Removed functions which were not required for tests to function.

Signed-off-by: Frank Quinn <fquinn.ni@gmail.com>
UNITTEST: Made some middlewareTransportTests optional

Also removed some unnecessary code in some of the tests.

Made the following tests optional:

forceClientDisconnect*
findConnection*
getAllConnections*
requestConflation*
requestEndConflation*
getAllServerConnections*
freeAllServerConnections*
freeAllConnections*
getNumLoadBalanceAttributes*
getLoadBalanceSharedObjectName*
sendMsgToConnection*
isConnectionInterceptedInvalidConnection
installConnectConflateMgr*
uninstallConnectConflateMgr*
startConnectionConflation*
getNativeTransportNamingCtx*

Signed-off-by: Frank Quinn <fquinn.ni@gmail.com>
UNITTEST: Multiple fixes for middlewareSubscriptionTests

Return code standardisation for NULL arguments and multiple functions
made optional.

Made the following tests optional:

- createWildCardInvalid*
- getPlatformError*
- setTopicClosure*

Signed-off-by: Frank Quinn <fquinn.ni@gmail.com>
UNITTEST: Fixed incorrect return code in middlewareIoTests

MAMA_STATUS_NULL_ARG should be returned when a NULL argument is passed.

Signed-off-by: Frank Quinn <fquinn.ni@gmail.com>
UNITTEST: Modified price string test to expect less precision

Without precision, it's up to the platform to decide how much precision
to apply to doubles, so even this test may be invalid, but it passes on
all tested platforms so we can leave it in for now.

Signed-off-by: Frank Quinn <fquinn.ni@gmail.com>
UNITTEST: mamaPrice_getIsValidPrice return code check fix

The function mamaPrice_getIsValidPrice returns either 0 or else non-zero
to satisfy its boolean check - not 1 or 0. Test updated to reflect this.

Signed-off-by: Frank Quinn <fquinn.ni@gmail.com>
UNITTEST: Floating FAIL() removed

Signed-off-by: Frank Quinn <fquinn.ni@gmail.com>
UNITTEST: Removed unused variables in msgstatustests

Signed-off-by: Frank Quinn <fquinn.ni@gmail.com>