summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/tar02
diff options
context:
space:
mode:
authorNick Withers <nick.withers@anu.edu.au>2014-03-07 14:23:30 +1100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-12-11 08:12:13 +0100
commit9d9c42601ac54a316a5a8656ebc083c401da07e2 (patch)
tree54101eaf191266ea430cf27b7eae75e954271906 /testsuites/libtests/tar02
parentsparc64: put each copyright on one line (diff)
downloadrtems-9d9c42601ac54a316a5a8656ebc083c401da07e2.tar.bz2
Teach rtems_tarfs_load() about symlinks
Diffstat (limited to 'testsuites/libtests/tar02')
-rw-r--r--testsuites/libtests/tar02/init.c2
-rw-r--r--testsuites/libtests/tar02/tar02.scn10
2 files changed, 8 insertions, 4 deletions
diff --git a/testsuites/libtests/tar02/init.c b/testsuites/libtests/tar02/init.c
index cfeda1b3bb..29bc529579 100644
--- a/testsuites/libtests/tar02/init.c
+++ b/testsuites/libtests/tar02/init.c
@@ -57,10 +57,8 @@ void test_tarfs_load(void)
test_cat( "/home/test_file", 0, 0 );
/******************/
-#if 0
printf( "========= /symlink =========\n" );
test_cat( "/symlink", 0, 0 );
-#endif
}
rtems_task Init(
diff --git a/testsuites/libtests/tar02/tar02.scn b/testsuites/libtests/tar02/tar02.scn
index 3b4d1bc2b0..f4ba9ce0f2 100644
--- a/testsuites/libtests/tar02/tar02.scn
+++ b/testsuites/libtests/tar02/tar02.scn
@@ -4,12 +4,18 @@ Loading tarfs image ... successful
(0)This is a test of loading an RTEMS filesystem from an
initial tar image.
-*** Skipping symlink -- NOT CURRENTLY SUPPORTED ***
+========= /symlink =========
+(0)This is a test of loading an RTEMS filesystem from an
+initial tar image.
+
*************** Dump of Entire IMFS ***************
/
....dev/
+........ttyS0 (device 0, 0)
........console (device 0, 0)
+........ttyS1 (device 0, 1)
....home/
-........test_file (file 73 0x12022c)
+........test_file (file 73 0x390f8)
+....symlink links not printed
*************** End of Dump ***************
*** END OF TAR02 TEST ***