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
Add first set of SI95 unit tests and health check
[ric-plt/lib/rmr.git]
/
test
/
wormhole_static_test.c
diff --git
a/test/wormhole_static_test.c
b/test/wormhole_static_test.c
index
47bd85f
..
7cabffa
100644
(file)
--- a/
test/wormhole_static_test.c
+++ b/
test/wormhole_static_test.c
@@
-56,12
+56,7
@@
static int worm_test( ) {
int whid = -1;
int last_whid;
int whid = -1;
int last_whid;
- ctx = (uta_ctx_t *) malloc( sizeof( uta_ctx_t ) );
- if( ctx == NULL ) {
- fail_if_nil( ctx, "could not allocate dummy context" );
- return 1;
- }
- memset( ctx, 0, sizeof( *ctx ) );
+ ctx = mk_dummy_ctx();
ctx->my_name = strdup( "tester" );
ctx->my_ip = strdup( "30.4.19.86:1111" );
ctx->my_name = strdup( "tester" );
ctx->my_ip = strdup( "30.4.19.86:1111" );