Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Ensure RT incremental update not applied early
[ric-plt/lib/rmr.git]
/
test
/
test_ctx_support.c
diff --git
a/test/test_ctx_support.c
b/test/test_ctx_support.c
index
d15239a
..
cd3f14e
100644
(file)
--- a/
test/test_ctx_support.c
+++ b/
test/test_ctx_support.c
@@
-45,6
+45,7
@@
static inline uta_ctx_t *mk_dummy_ctx() {
}
memset( ctx, 0, sizeof( *ctx ) );
}
memset( ctx, 0, sizeof( *ctx ) );
+ ctx->snarf_rt_fd = -1;
return ctx;
}
return ctx;
}
@@
-70,6
+71,7
@@
static inline uta_ctx_t *mk_dummy_ctx() {
ctx->si_ctx = malloc( 1024 );
ctx->my_name = strdup( "hostname1" );
ctx->my_ip = strdup( "123.45.67.89" );
ctx->si_ctx = malloc( 1024 );
ctx->my_name = strdup( "hostname1" );
ctx->my_ip = strdup( "123.45.67.89" );
+ ctx->snarf_rt_fd = -1;
ctx->rtgate = (pthread_mutex_t *) malloc( sizeof( *ctx->rtgate ) );
if( ctx->rtgate != NULL ) {
ctx->rtgate = (pthread_mutex_t *) malloc( sizeof( *ctx->rtgate ) );
if( ctx->rtgate != NULL ) {