# HG changeset patch # User Matt Harbison # Date 1621555143 14400 # Node ID 93fc0a13b7e82cf63a092a7acd0b7e3a380c8300 # Parent b1ce93dcdf3cc10dcca0423673f3fdefe84993f7 tests: partially fix test-transaction-rollback-on-revlog-split.t on Windows For whatever reason, the extra space causes different output on Windows: $ printf '% 20d' '1' | xxd - 0000000: 2020 2020 2020 2020 2020 2020 2020 2020 0000010: 2020 2020 31 1 vs WSL: /mnt/c/Users/Matt/hg/tests$ printf '% 20d' '1' | xxd - 00000000: 2020 2020 2020 2020 2020 2020 2020 2020 00000010: 2020 2031 Without the space, they both agree the last word is 2031. There are other failures on Windows that I don't understand that are introduced by 46b828b85eb7 and 18415fc918a1. Differential Revision: https://phab.mercurial-scm.org/D10763 diff -r b1ce93dcdf3c -r 93fc0a13b7e8 tests/test-transaction-rollback-on-revlog-split.t --- a/tests/test-transaction-rollback-on-revlog-split.t Thu May 20 19:30:56 2021 -0400 +++ b/tests/test-transaction-rollback-on-revlog-split.t Thu May 20 19:59:03 2021 -0400 @@ -28,9 +28,9 @@ $ hg init troffset-computation --config format.revlog-compression=none $ cd troffset-computation - $ printf '% 20d' '1' > file + $ printf '%20d' '1' > file $ hg commit -Aqm_ - $ printf '% 1024d' '1' > file + $ printf '%1024d' '1' > file $ hg commit -Aqm_ $ dd if=/dev/zero of=file bs=1k count=128 > /dev/null 2>&1 $ hg commit -Aqm_