diff options
author | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2016-12-14 14:10:18 +0100 |
---|---|---|
committer | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2017-01-17 12:51:30 +0100 |
commit | 120caa668f8a2f1d78dd04ddf4f9120302f3ad91 (patch) | |
tree | 5b8cdf9eab02a3a7bdc11ebca3f3434baa9abc66 /testsuite/commands01/test_main.c | |
parent | freebsd/wlanstats: Port to FreeBSD. (diff) | |
download | rtems-libbsd-120caa668f8a2f1d78dd04ddf4f9120302f3ad91.tar.bz2 |
testsuite/commands01: Add wlanstats call.
Diffstat (limited to 'testsuite/commands01/test_main.c')
-rw-r--r-- | testsuite/commands01/test_main.c | 17 |
1 files changed, 17 insertions, 0 deletions
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 @@ -258,6 +258,22 @@ test_netstat(void) } 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) { test_route_without_if(); @@ -266,6 +282,7 @@ test_main(void) test_ping(); test_ping6(); test_netstat(); + test_wlanstats(); exit(0); } |