File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/test/java/org/apache/commons/io Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,6 @@ void testMaxNameLength_MatchesRealSystem(@TempDir Path tempDir) {
273273
274274 // OS behavior: may or may not reject.
275275 try {
276- // Some file systems do not enforce the limit, for example XFS on Linux
277276 createAndDelete (tempDir , tooLongName );
278277 } catch (final Throwable e ) {
279278 failures ++;
@@ -295,7 +294,7 @@ void testMaxNameLength_MatchesRealSystem(@TempDir Path tempDir) {
295294 // Because of this mismatch, depending on which filesystem is mounted,
296295 // either all or only FILE_NAME_255BYTES_UTF8_1B + "a" will be rejected.
297296 if (SystemUtils .IS_OS_MAC_OSX ) {
298- assertTrue (failures == 1 || failures == 4 , "At least one name too long was rejected" );
297+ assertTrue (failures >= 1 , "Expected at least one too- long name rejected, got " + failures );
299298 } else {
300299 assertEquals (4 , failures , "All too-long names were rejected" );
301300 }
You can’t perform that action at this time.
0 commit comments