+/*
+ Create a very large set of things to clone and ensure that the colleciton
+ buffers are properly resized without errors.
+*/
+static int lg_clone_test( ) {
+ int errors = 0;
+ uta_ctx_t* ctx;
+ char* old_env;
+ route_table_t* p;
+
+ old_env = getenv( "RMR_SEED_RT" );
+ setenv( "RMR_SEED_RT", "./large_meid.rt", 1 );
+
+ ctx = mk_dummy_ctx();
+
+ read_static_rt( ctx, 0 );
+ p = uta_rt_clone( ctx, ctx->rtable, NULL, 1 ); // clone to force the copy from the existing table
+ errors += fail_if_nil( p, "clone of large table returned nil" );
+ if( p != NULL ) {
+ errors += fail_not_equal( p->error, 0, "clone of large table had error" );
+ }
+
+ setenv( "RMR_SEED_RT", old_env, 1 );
+
+ return errors;
+}
+