mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests
- feature.exit.t was not properly converting the return value from a system() call to an exit status.
This commit is contained in:
parent
62dc276f0b
commit
ba72377209
1 changed files with 2 additions and 2 deletions
|
@ -42,9 +42,9 @@ if (open my $fh, '>', 'exit.rc')
|
|||
}
|
||||
|
||||
qx{../src/task rc:exit.rc add foo 2>&1};
|
||||
my $exit_good = system ('../src/task rc:exit.rc ls /foo/ >/dev/null 2>&1');
|
||||
my $exit_good = system ('../src/task rc:exit.rc ls /foo/ >/dev/null 2>&1') >> 8;
|
||||
is ($exit_good, 0, 'task returns 0 on success');
|
||||
my $exit_bad = system ('../src/task rc:exit.rc ls /bar/ >/dev/null 2>&1');
|
||||
my $exit_bad = system ('../src/task rc:exit.rc ls /bar/ >/dev/null 2>&1') >> 8;
|
||||
isnt ($exit_bad, 0, 'task returns non-zero on failure');
|
||||
|
||||
# Cleanup.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue