From a8f7b6dbd743bc224e2a8616993c373e82072956 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 14 Nov 2018 00:08:11 -0500 Subject: tests: Don't assume find continues after filesystem loops POSIX says > When it detects an infinite loop, find shall write a diagnostic > message to standard error and shall either recover its position in the > hierarchy or terminate. So make the 'links' folder not have any loops, and add a new 'loops' folder for testing the GNU/bfs behaviour. --- tests/test_printf_types.out | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'tests/test_printf_types.out') diff --git a/tests/test_printf_types.out b/tests/test_printf_types.out index b548b10..9cfe347 100644 --- a/tests/test_printf_types.out +++ b/tests/test_printf_types.out @@ -1,12 +1,11 @@ -(links) () d d -(links/broken) (nowhere) l N -(links/deeply) () d d -(links/file) () f f -(links/hardlink) () f f -(links/loop) (loop) l L -(links/symlink) (file) l f -(links/deeply/nested) () d d -(links/notdir) (symlink/file) l N -(links/deeply/nested/dir) () d d -(links/skip) (deeply/nested/loop/nested) l d -(links/deeply/nested/loop) (../../deeply) l d +(loops) () d d +(loops/broken) (nowhere) l N +(loops/deeply) () d d +(loops/file) () f f +(loops/loop) (loop) l L +(loops/symlink) (file) l f +(loops/deeply/nested) () d d +(loops/notdir) (symlink/file) l N +(loops/deeply/nested/dir) () d d +(loops/skip) (deeply/nested/loop/nested) l d +(loops/deeply/nested/loop) (../../deeply) l d -- cgit v1.2.3