summaryrefslogtreecommitdiff
path: root/testsuite/nfs01/test_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/nfs01/test_main.c')
-rw-r--r--testsuite/nfs01/test_main.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/testsuite/nfs01/test_main.c b/testsuite/nfs01/test_main.c
index 2312040a..e97c07cd 100644
--- a/testsuite/nfs01/test_main.c
+++ b/testsuite/nfs01/test_main.c
@@ -51,8 +51,8 @@
static void
test_main(void)
{
- static const char remote_target[] =
- "1000.100@" NET_CFG_PEER_IP " :/srv/nfs";
+ static const char remote_target[] = NET_CFG_NFS_MOUNT_PATH;
+ int retries = 0;
int rv;
do {
@@ -61,7 +61,12 @@ test_main(void)
rv = mount_and_make_target_path(&remote_target[0], "/nfs",
RTEMS_FILESYSTEM_TYPE_NFS, RTEMS_FILESYSTEM_READ_WRITE,
NULL);
- } while (rv != 0);
+ } while (rv != 0 && retries++ < 5);
+
+ if (rv != 0) {
+ printf("error: NFS mount failed\n");
+ exit(rv);
+ }
rtems_task_delete(RTEMS_SELF);
assert(0);