diff options
author | Colin Watson <cjwatson@debian.org> | 2022-02-04 16:13:09 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2022-02-04 16:13:09 +0000 |
commit | 18bb0f05f161e136b78a4f184fdc044aab210ba3 (patch) | |
tree | d19ad4dd38470cf5e46eccc0a8655681b1a4ea58 /src | |
parent | 2954f811e8c1c7813c16a4c9a2cdac3bd65b71f0 (diff) |
Fix occasional mandb-symlink-target-timestamp test failure
* src/tests/mandb-symlink-target-timestamp: Fix handling of the case
where the nanosecond part of a timestamp starts with a zero.
* NEWS.md: Document this.
Diffstat (limited to 'src')
-rwxr-xr-x | src/tests/mandb-symlink-target-timestamp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/mandb-symlink-target-timestamp b/src/tests/mandb-symlink-target-timestamp index 1c87d3da..3208eb85 100755 --- a/src/tests/mandb-symlink-target-timestamp +++ b/src/tests/mandb-symlink-target-timestamp @@ -21,8 +21,8 @@ write_page test 1 "$tmpdir/usr/share/man/man1/test.1.gz" \ ln -s test.1.gz "$tmpdir/usr/share/man/man1/test-link.1.gz" run $MANDB -C "$tmpdir/manpath.config" -u -q "$tmpdir/usr/share/man" cat >"$tmpdir/1.exp" <<EOF -test -> "- 1 1 $(./get-mtime "$tmpdir/usr/share/man/man1/test.1.gz" | tr . ' ') A - - gz test(1)" -test-link -> "- 1 1 $(./get-mtime "$tmpdir/usr/share/man/man1/test-link.1.gz" | tr . ' ') B - - gz test(1)" +test -> "- 1 1 $(./get-mtime "$tmpdir/usr/share/man/man1/test.1.gz" | sed 's/\.0*/ /') A - - gz test(1)" +test-link -> "- 1 1 $(./get-mtime "$tmpdir/usr/share/man/man1/test-link.1.gz" | sed 's/\.0*/ /') B - - gz test(1)" EOF run $ACCESSDB "$tmpdir/usr/share/man/index$db_ext" | \ grep -v '^\$' >"$tmpdir/1.out" |