mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug TW-1295
- TW-1295 test/time.t fails on the last day of the month (thanks to Jakub Wilk).
This commit is contained in:
parent
5965a85151
commit
6354bc09ab
2 changed files with 30 additions and 19 deletions
|
@ -37,6 +37,8 @@ Bugs
|
|||
- TW-1282 incorrect URLs in man task-sync (thanks to Jeremiah Marks).
|
||||
- TW-1288 Added missing locking for task modifications (thanks to Kosta H,
|
||||
Ralph Bean, Adam Coddington).
|
||||
- TW-1295 test/time.t fails on the last day of the month (thanks to Jakub
|
||||
Wilk).
|
||||
- TW-1296 make test/run_all exit with non-zero code if a test fail (thanks to
|
||||
Jakub Wilk).
|
||||
- #1511 sync init crashes if client certification file is empty or invalid
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use POSIX qw(mktime);
|
||||
use Test::More tests => 7;
|
||||
|
||||
# Ensure environment has no influence.
|
||||
|
@ -49,6 +50,13 @@ qx{../src/task rc:count.rc add three 2>&1};
|
|||
qx{../src/task rc:count.rc 2 delete 2>&1};
|
||||
qx{../src/task rc:count.rc add four wait:eom 2>&1};
|
||||
|
||||
TODO: {
|
||||
my @today = localtime;
|
||||
my @tomorrow = @today;
|
||||
$tomorrow[3] += 1;
|
||||
@tomorrow = localtime(mktime(@tomorrow));
|
||||
local $TODO = 'can fail when today == eom' if $today[4] != $tomorrow[4];
|
||||
|
||||
# TODO This fails when today == eom. For example, on 2013-04-30 at 8:00:00, the
|
||||
# value for 'eom' is 2013-04-30 0:00:00, which is already past due, which
|
||||
# means a second child task is generated. This would be fixed by 'eom'
|
||||
|
@ -73,6 +81,7 @@ like ($output, qr/^2\n/ms, 'count description.startswith:f');
|
|||
diag ("Problem: the next test fails at EOM");
|
||||
$output = qx{../src/task rc:count.rc count due.any: 2>&1};
|
||||
like ($output, qr/^1\n/ms, 'count due.any:');
|
||||
}
|
||||
|
||||
# Cleanup.
|
||||
unlink qw(pending.data completed.data undo.data backlog.data count.rc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue