Skip to content

Commit d6a6d04

Browse files
committed
Fix test
On some systems (Fedora 40) `which unknown` outputs error string
1 parent b1e47a8 commit d6a6d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Framework/RcubeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function test_exec()
7878
return;
7979
}
8080

81-
$this->assertSame('', \rcube::exec('which unknown-command-123'));
81+
$this->assertSame('', \rcube::exec('which unknown-command-123 2> /dev/null'));
8282
$this->assertSame("2038\n", \rcube::exec('date --date={date} +%Y', ['date' => '@2147483647']));
8383
// TODO: More cases
8484
}

0 commit comments

Comments
 (0)