summaryrefslogtreecommitdiff
path: root/dev-vcs/rcs/files/rcs-5.9.4-test-t810.patch
blob: 568731e1903f329f59b271bece962b2e0fe88681 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
https://git.savannah.gnu.org/cgit/rcs.git/commit/?h=p&id=f2330a6268d244e97f47a97f4767736fc3b31455
https://bugs.gentoo.org/820230

From: Thien-Thi Nguyen <ttn@gnu.org>
Date: Thu, 5 Apr 2018 16:20:35 +0200
Subject: [v] Avoid "test FILE1 -nt FILE2".

* tests/t810: Use "btdt mtimecmp" instead of "test -nt".
Thanks to both sergio and Xose Vazquez Perez
for indirectly signalling this problem.  See 2018-04-05,
"Add support for "btdt mtimecmp FILE1 FILE2"" for details.
--- a/tests/t810
+++ b/tests/t810
@@ -27,7 +27,8 @@ split_std_out_err no
 
 must 'echo new line >> $w'
 must 'ci -mm -l -d -T $w'
-test $w -nt $v && problem "$w newer than $v"
+test 1 = `./btdt mtimecmp $w $v` \
+    && problem "$w newer than $v"
 
 exit 0
 
cgit v1.2.1