man-db-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Man-db-devel] [PATCH 1/2] src/tests: Fix man-9 depending on --override_


From: Mihail Konev
Subject: [Man-db-devel] [PATCH 1/2] src/tests: Fix man-9 depending on --override_dir
Date: Tue, 3 Jan 2017 01:39:06 +0500

The man() in src/man.c calls sort_candidates(), so -w option sorts
its output before displaying.
As value of override_dir affects paths to pages used in the test,
it also affects the output which is being checked.

Sort the reference output before comparing man(1) against it.

Reported-by: Nikola Forró <address@hidden>
---
 src/tests/man-9 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tests/man-9 b/src/tests/man-9
index 4dc03319db9f..1695cfc195bf 100755
--- a/src/tests/man-9
+++ b/src/tests/man-9
@@ -28,7 +28,7 @@ write_page abc 1 
"${tmpdir}/usr/share/man/${OVERRIDE}/man1/abc.1" \
        UTF-8 '' '' 'abc \- modified test page'
 
 if [ -n "$OVERRIDE_DIR" ]; then
-cat >"$tmpdir/1.exp" <<EOF
+sort >"$tmpdir/1.exp" <<EOF
 $abstmpdir/usr/share/man/${OVERRIDE}/man1/abc.1
 $abstmpdir/usr/share/man/man1/abc.1
 EOF
-- 
2.9.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]