tests: Better tolerate file system restriction on file name length.
authorBen Pfaff <blp@ovn.org>
Tue, 16 Feb 2016 19:13:35 +0000 (11:13 -0800)
committerBen Pfaff <blp@ovn.org>
Sat, 20 Feb 2016 00:46:19 +0000 (16:46 -0800)
commitc6bd5e91520990ac2a227cafd98857fa672949ed
tree2120467c01a4dd828e3b94a1197f617614d11af6
parentbc8d7dfabdf3ca10ce6f31426d7710ffca7dbc0e
tests: Better tolerate file system restriction on file name length.

ecryptfs on Linux restricts file names to 143 bytes, but these two tests
used a 150-byte name.  This commit fixes the specific problem on ecryptfs
by reducing the name it test to 143 bytes.  It also fixes the more general
problem of name length restrictions by skipping the test, rather than
failing it, if a directory with the 143-byte name cannot be created, since
the most likely problem is that the name is too long for the file system.

Reported-by: Zoltán Balogh <zoltan.balogh@ericsson.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
tests/library.at