mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 17:58:27 +03:00
b1d033afa3
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
12 lines
336 B
Perl
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]
|