[rtems-libbsd commit] testsuite/commands01: Add wlanstats call.
Sebastian Huber
sebh at rtems.org
Mon Jan 30 08:44:55 UTC 2017
Module: rtems-libbsd
Branch: master
Commit: 120caa668f8a2f1d78dd04ddf4f9120302f3ad91
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=120caa668f8a2f1d78dd04ddf4f9120302f3ad91
Author: Christian Mauderer <Christian.Mauderer at embedded-brains.de>
Date: Wed Dec 14 14:10:18 2016 +0100
testsuite/commands01: Add wlanstats call.
---
testsuite/commands01/test_main.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/testsuite/commands01/test_main.c b/testsuite/commands01/test_main.c
index 7061e90..e474785 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);
}
More information about the vc
mailing list