Correct bug identified in static analysis
This change corrects a flag test bug identified during static analysis
of the code. Several tests were added and/or enhanced to beef up
the coverage.
Issue-ID: RIC-777
Signed-off-by: E. Scott Daniels <daniels@att.com>
Change-Id: Icd56f9a669e9583446ac80a5120bc42193eb7adb
Signed-off-by: E. Scott Daniels <daniels@att.com>
diff --git a/test/test_gen_rt.c b/test/test_gen_rt.c
index 5748ca1..3afe47b 100644
--- a/test/test_gen_rt.c
+++ b/test/test_gen_rt.c
@@ -45,7 +45,6 @@
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" );
@@ -53,6 +52,8 @@
}
rt_stuff =
+ "updatert|start\n" // update check before whole table received
+ "updatert|end\n"
"newrt|end\n" // end of table check before start of table found
"# comment to drive full comment test\n"
"\n" // handle blank lines