diff tests/test-rhg.t @ 45938:f5d62f4d5327

rhg: check that .hg/requires is ASCII Differential Revision: https://phab.mercurial-scm.org/D9400
author Simon Sapin <simon-commits@exyr.org>
date Wed, 25 Nov 2020 12:33:37 +0100
parents 2ad2745e0be9
children 904647f7d983
line wrap: on
line diff
--- a/tests/test-rhg.t	Tue Nov 24 18:52:38 2020 +0100
+++ b/tests/test-rhg.t	Wed Nov 25 12:33:37 2020 +0100
@@ -140,3 +140,8 @@
   sparserevlog
   store
   indoor-pool
+
+  $ echo -e '\xFF' >> .hg/requires
+  $ rhg debugrequirements
+  abort: .hg/requires is corrupted
+  [255]