diff --git a/testsuite/commands01/test_main.c b/testsuite/commands01/test_main.c index 7061e90c..e4747857 100644 --- a/testsuite/commands01/test_main.c +++ b/testsuite/commands01/test_main.c @@ -257,6 +257,22 @@ test_netstat(void) assert(rtems_resource_snapshot_check(&snapshot)); } +static void +test_wlanstats(void) +{ + rtems_resource_snapshot snapshot; + char *wlanstats[] = { + "wlanstats", + NULL + }; + + /* Without a WLAN device, only the basic call can be tested. */ + rtems_bsd_command_wlanstats(ARGC(wlanstats), wlanstats); + rtems_resource_snapshot_take(&snapshot); + rtems_bsd_command_wlanstats(ARGC(wlanstats), wlanstats); + assert(rtems_resource_snapshot_check(&snapshot)); +} + static void test_main(void) { @@ -266,6 +282,7 @@ test_main(void) test_ping(); test_ping6(); test_netstat(); + test_wlanstats(); exit(0); }