testsuite/commands01: Add wlanstats call.

This commit is contained in:
Christian Mauderer 2016-12-14 14:10:18 +01:00
parent ecda18104e
commit 120caa668f

View File

@ -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);
}