@@ -140,7 +140,8 @@ public void testUseAttributesFromTarArchiveInputInTarArchiverOutput()
140140 PlexusIoResourceAttributes fileAttributes =
141141 PlexusIoResourceAttributeUtils .getFileAttributes ( new File ( tempTarDir , tempFile .getName () ) );
142142
143- assertEquals ( "644" , fileAttributes .getOctalModeString () );
143+ assertEquals ( "This test will fail if your umask is not X2X (or more)" ,
144+ "644" , fileAttributes .getOctalModeString () );
144145 }
145146
146147 public void testUseDetectedFileAttributes ()
@@ -200,7 +201,8 @@ public void testUseDetectedFileAttributes()
200201
201202 fileAttributes = PlexusIoResourceAttributeUtils .getFileAttributes ( new File ( tempTarDir , tempFile .getName () ) );
202203
203- assertEquals ( "444" , fileAttributes .getOctalModeString () );
204+ assertEquals ( "This test will fail if your umask is not X2X (or more)" ,
205+ "444" , fileAttributes .getOctalModeString () );
204206 }
205207
206208 private boolean checkForWindows ()
@@ -266,7 +268,8 @@ public void testOverrideDetectedFileAttributes()
266268 PlexusIoResourceAttributes fileAttributes =
267269 PlexusIoResourceAttributeUtils .getFileAttributes ( new File ( tempTarDir , tempFile .getName () ) );
268270
269- assertEquals ( "644" , fileAttributes .getOctalModeString () );
271+ assertEquals ( "This test will fail if your umask is not X2X (or more)" ,
272+ "644" , fileAttributes .getOctalModeString () );
270273 }
271274
272275 public void testOverrideDetectedFileAttributesUsingFileMode ()
@@ -323,7 +326,8 @@ public void testOverrideDetectedFileAttributesUsingFileMode()
323326 PlexusIoResourceAttributes fileAttributes =
324327 PlexusIoResourceAttributeUtils .getFileAttributes ( new File ( tempTarDir , tempFile .getName () ) );
325328
326- assertEquals ( "644" , fileAttributes .getOctalModeString () );
329+ assertEquals ( "This test will fail if your umask is not X2X (or more)" ,
330+ "644" , fileAttributes .getOctalModeString () );
327331 }
328332
329333}
0 commit comments