Ensure RT incremental update not applied early
[ric-plt/lib/rmr.git] / test / test_gen_rt.c
index 5d9e366..5748ca1 100644 (file)
@@ -45,6 +45,7 @@ static void gen_rt( uta_ctx_t* ctx ) {
        int             fd;
        char*   rt_stuff;               // strings for the route table
 
+ctx->flags |= 0x08;
        fd = open( "utesting.rt", O_WRONLY | O_CREAT, 0600 );
        if( fd < 0 ) {
                fprintf( stderr, "<BUGGERED> unable to open file for testing route table gen\n" );
@@ -134,7 +135,7 @@ static void gen_custom_rt( uta_ctx_t* ctx, char* buf ) {
        }
        setenv( "RMR_SEED_RT", "Xutesting.rt", 1 );
 
-       fprintf( stderr, "<INFO> creating custom rt from buffer (%d bytes)\n", strlen (buf ) );
+       fprintf( stderr, "<INFO> creating custom rt from buffer (%d bytes)\n", (int) strlen (buf ) );
        if( write( fd, buf, strlen( buf ) ) != strlen( buf ) ) {
                fprintf( stderr, "<BUGGERED> write failed: %s\n", strerror( errno ) );
        }