testsuite: Wait for the link to be UP

- Wait for a slow PHY to bring the link UP. If the IP address is
  static the test can start before the link is up and the test
  fails.

- Make 2 tests wait. Others will need to be added.
This commit is contained in:
Chris Johns
2021-08-08 16:35:02 +10:00
parent 45ff774c3c
commit efd75d2e35
4 changed files with 59 additions and 0 deletions

View File

@@ -46,6 +46,7 @@
#include <rtems/bsd/test/network-config.h>
#define TEST_NAME "LIBBSD NFS 1"
#define TEST_WAIT_FOR_LINK NET_CFG_INTERFACE_0
#define TEST_STATE_USER_INPUT 1
static void