2009-12-28 Aanjhan Ranganathan <aanjhan@gmail.com>

* bspcmdline01/init.c, bspcmdline01/bspcmdline01.scn: Added test case
	to cover the bsp_cmdline_get_param() routine.
This commit is contained in:
Joel Sherrill
2009-12-28 16:42:08 +00:00
parent 44be50c22f
commit aea66e878a
3 changed files with 11 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2009-12-28 Aanjhan Ranganathan <aanjhan@gmail.com>
* bspcmdline01/init.c, bspcmdline01/bspcmdline01.scn: Added test case
to cover the bsp_cmdline_get_param() routine.
2009-12-21 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* block06/init.c: Update for disk device API change. Changed EBADRQC

View File

@@ -8,6 +8,7 @@ rtems_bsp_cmdline_get_param - length=0 - returns NULL
rtems_bsp_cmdline_get_param_raw - name=NULL - returns NULL
rtems_bsp_cmdline_get_param - bsp_boot_cmdline=NULL - returns NULL
rtems_bsp_cmdline_get_param_raw - bsp_boot_cmdline=NULL - returns NULL
rtems_bsp_cmdline_get_param - bsp_boot_cmdline = edit name = edit -no error
Testing for param=(--arg)
Command Line : (--arg=)

View File

@@ -47,6 +47,11 @@ void test_errors(void)
"rtems_bsp_cmdline_get_param_raw - bsp_boot_cmdline=NULL - returns NULL" );
p = rtems_bsp_cmdline_get_param_raw( "name" );
rtems_test_assert( p == NULL );
bsp_boot_cmdline = "edit";
puts ( "rtems_bsp_cmdline_get_param - bsp_boot_cmdline = edit name = edit -no error" );
p = rtems_bsp_cmdline_get_param("edit", result, 5);
rtems_test_assert( p == NULL );
}
void test_search(