summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-07-09 16:35:38 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-07-09 16:35:38 -0400
commit2328d8dbb5a8c774afb99d363b6e98cd25ee304d (patch)
tree53822ecfebc872335e9b13f2fb255f0b2aa808d6 /tests
parentf4eed3b771a987ef441fea49ababc356a2933086 (diff)
downloadbfs-2328d8dbb5a8c774afb99d363b6e98cd25ee304d.tar.xz
Handle ENOTDIR the same as ENOENT
For a/b/c, ENOTDIR is returned instead of ENOENT if a or b are not directories. Handle this uniformly when detecting broken symlinks, readdir races, etc.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_L.out1
-rw-r--r--tests/test_L_depth.out1
-rw-r--r--tests/test_L_xtype_l.out1
-rw-r--r--tests/test_colors.out1
-rw-r--r--tests/test_follow.out1
-rw-r--r--tests/test_printf_types.out1
-rw-r--r--tests/test_xtype_l.out1
7 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_L.out b/tests/test_L.out
index 36087e8..f9ded0a 100644
--- a/tests/test_L.out
+++ b/tests/test_L.out
@@ -4,6 +4,7 @@ links/b
links/c
links/d
links/h
+links/j
links/d/e
links/h/f
links/h/g
diff --git a/tests/test_L_depth.out b/tests/test_L_depth.out
index 36087e8..f9ded0a 100644
--- a/tests/test_L_depth.out
+++ b/tests/test_L_depth.out
@@ -4,6 +4,7 @@ links/b
links/c
links/d
links/h
+links/j
links/d/e
links/h/f
links/h/g
diff --git a/tests/test_L_xtype_l.out b/tests/test_L_xtype_l.out
index 1052fc0..57bee1b 100644
--- a/tests/test_L_xtype_l.out
+++ b/tests/test_L_xtype_l.out
@@ -1,5 +1,6 @@
links/b
links/h
+links/j
links/h/g
links/h/i
links/d/e/i
diff --git a/tests/test_colors.out b/tests/test_colors.out
index a9ab84a..8c8b244 100644
--- a/tests/test_colors.out
+++ b/tests/test_colors.out
@@ -2,6 +2,7 @@
links/d
links/b
links/h
+links/j
links/a
links/c
links/d/e
diff --git a/tests/test_follow.out b/tests/test_follow.out
index 36087e8..f9ded0a 100644
--- a/tests/test_follow.out
+++ b/tests/test_follow.out
@@ -4,6 +4,7 @@ links/b
links/c
links/d
links/h
+links/j
links/d/e
links/h/f
links/h/g
diff --git a/tests/test_printf_types.out b/tests/test_printf_types.out
index 94fa833..bd89b47 100644
--- a/tests/test_printf_types.out
+++ b/tests/test_printf_types.out
@@ -5,6 +5,7 @@
(links/d) () d d
(links/d/e) () d d
(links/h) (d/e) l d
+(links/j) (b/c) l N
(links/d/e/f) () d d
(links/d/e/i) (q) l N
(links/d/e/g) (../../d) l d
diff --git a/tests/test_xtype_l.out b/tests/test_xtype_l.out
index e5e13fc..2d1293f 100644
--- a/tests/test_xtype_l.out
+++ b/tests/test_xtype_l.out
@@ -1 +1,2 @@
+links/j
links/d/e/i