sapling/tests/test-adding-invalid-utf8.t
Saurabh Singh b1d033afa3 test-adding-invalid-utf8: skip the test for OSX
Summary:
Files with invalid `UTF-8` names are not allowed on OSX anyway and
therefore, this test can be skipped on OSX.

Reviewed By: sfilipco

Differential Revision: D14835026

fbshipit-source-id: 5ad80a4e98ab5088951b1e8209981a3e7fdb03a1
2019-04-08 10:52:57 -07:00

12 lines
336 B
Perl

#require no-windows no-osx
Test that trying to add invalid utf8 files to the repository will fail.
$ hg init
>>> open("invalid\x80utf8", "w").write("test")
$ hg addremove
adding invalid\x80utf8 (esc)
$ hg commit -m "adding a filename that is invalid utf8"
abort: invalid file name encoding: invalid\x80utf8! (esc)
[255]