// : vi ts=4 sw=4 noet :
/*
==================================================================================
- Copyright (c) 2019 Nokia
- Copyright (c) 2018-2019 AT&T Intellectual Property.
+ Copyright (c) 2019-2021 Nokia
+ Copyright (c) 2018-2021 AT&T Intellectual Property.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
/*
Generate a simple route table (for all but direct route table testing).
This table contains multiple tables inasmuch as a second update set of
- records follows the initial set.
+ records follows the initial set.
*/
static void gen_rt( uta_ctx_t* ctx ) {
int fd;
ctx->rtable = NULL;
gen_mlnl_rt( ctx ); // ensure that a file with missing last new line does not trip us up
errors += fail_if_nil( ctx->rtable, "read route table file with missing last newline did not produce a table" );
-
+
ctx->rtable = NULL;
gen_rt( ctx ); // forces a static load with some known info since we don't start the rtc()
errors += fail_if_nil( ctx->rtable, "read multi test route table file did not produce a table" );
rtc( NULL ); // coverage test with nil pointer
rtc( ctx );
+ unlink( ".ut_rmr_verbose" );
- // --- drive the route table things which are nanomsg specific ------
-
- return !!errors;
+ return errors;
}