summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-02-06 21:12:38 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-02-09 15:38:04 +0100
commitb4e52ce90f0805fe3bcac655bf2d9bfc13ccac77 (patch)
tree89779c0ac54b9459105f4ec8c5b6a355bfa011f6
parentcf4dfc1901f4ac6f62c9f7b590ed2a14ac93e6f2 (diff)
downloadrtems-b4e52ce90f0805fe3bcac655bf2d9bfc13ccac77.tar.bz2
fstests/fsrename: Avoid double initialization
-rw-r--r--testsuites/fstests/fsrename/test.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/testsuites/fstests/fsrename/test.c b/testsuites/fstests/fsrename/test.c
index f268affb56..6799ab46e7 100644
--- a/testsuites/fstests/fsrename/test.c
+++ b/testsuites/fstests/fsrename/test.c
@@ -1185,7 +1185,8 @@ static void filesystem_test (void)
puts ("\nRename files across diferent filesystems\n");
- test_initialize_filesystem ();
+ rv = chroot ("/");
+ rtems_test_assert (rv == 0);
fd = creat (name01, mode);
rtems_test_assert (fd >= 0);
@@ -1196,15 +1197,12 @@ static void filesystem_test (void)
rtems_test_assert (rv < sizeof(path01));
EXPECT_ERROR (EXDEV, rename, name01, path01);
- /*
- * Clear directory
- */
-
- test_shutdown_filesystem ();
-
EXPECT_EQUAL (-1, unlink, path01);
EXPECT_EQUAL (0, unlink, name01);
+ rv = chroot (BASE_FOR_TEST);
+ rtems_test_assert (rv == 0);
+
/*
* Go back to parent directory
*/