# HG changeset patch # User Anton Shestakov # Date 1668441524 -14400 # Node ID 88a8de821b5e1c1a927dd73727f18372e9c75850 # Parent e11760daee12910a512f3fef2a1fd5ba7a4f294a tests: make running ls in a no longer existing directory more portable On Linux, ls -A simply returns nothing and the exit code is 0. On NetBSD, ls -A complains that . doesn't exist and the exit code is 1. Sadly, it's not possible to do something like "[1] (?)", so " || true" is the best I could come up with. diff -r e11760daee12 -r 88a8de821b5e tests/test-removeemptydirs.t --- a/tests/test-removeemptydirs.t Mon Nov 14 19:38:57 2022 +0400 +++ b/tests/test-removeemptydirs.t Mon Nov 14 19:58:44 2022 +0400 @@ -155,7 +155,8 @@ $ ls -A $TESTTMP/hghistedit/somedir foo - $ ls -A + $ ls -A || true + ls: .: $ENOENT$ (?) #endif Get out of the doomed directory