mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-22 23:55:34 +08:00
testsuite/commands01: Add wlanstats call.
This commit is contained in:
parent
ecda18104e
commit
120caa668f
@ -257,6 +257,22 @@ test_netstat(void)
|
|||||||
assert(rtems_resource_snapshot_check(&snapshot));
|
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
|
static void
|
||||||
test_main(void)
|
test_main(void)
|
||||||
{
|
{
|
||||||
@ -266,6 +282,7 @@ test_main(void)
|
|||||||
test_ping();
|
test_ping();
|
||||||
test_ping6();
|
test_ping6();
|
||||||
test_netstat();
|
test_netstat();
|
||||||
|
test_wlanstats();
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user