@@ -140,7 +140,8 @@ public void testUseAttributesFromTarArchiveInputInTarArchiverOutput()
140
140
PlexusIoResourceAttributes fileAttributes =
141
141
PlexusIoResourceAttributeUtils .getFileAttributes ( new File ( tempTarDir , tempFile .getName () ) );
142
142
143
- assertEquals ( "644" , fileAttributes .getOctalModeString () );
143
+ assertEquals ( "This test will fail if your umask is not X2X (or more)" ,
144
+ "644" , fileAttributes .getOctalModeString () );
144
145
}
145
146
146
147
public void testUseDetectedFileAttributes ()
@@ -200,7 +201,8 @@ public void testUseDetectedFileAttributes()
200
201
201
202
fileAttributes = PlexusIoResourceAttributeUtils .getFileAttributes ( new File ( tempTarDir , tempFile .getName () ) );
202
203
203
- assertEquals ( "444" , fileAttributes .getOctalModeString () );
204
+ assertEquals ( "This test will fail if your umask is not X2X (or more)" ,
205
+ "444" , fileAttributes .getOctalModeString () );
204
206
}
205
207
206
208
private boolean checkForWindows ()
@@ -266,7 +268,8 @@ public void testOverrideDetectedFileAttributes()
266
268
PlexusIoResourceAttributes fileAttributes =
267
269
PlexusIoResourceAttributeUtils .getFileAttributes ( new File ( tempTarDir , tempFile .getName () ) );
268
270
269
- assertEquals ( "644" , fileAttributes .getOctalModeString () );
271
+ assertEquals ( "This test will fail if your umask is not X2X (or more)" ,
272
+ "644" , fileAttributes .getOctalModeString () );
270
273
}
271
274
272
275
public void testOverrideDetectedFileAttributesUsingFileMode ()
@@ -323,7 +326,8 @@ public void testOverrideDetectedFileAttributesUsingFileMode()
323
326
PlexusIoResourceAttributes fileAttributes =
324
327
PlexusIoResourceAttributeUtils .getFileAttributes ( new File ( tempTarDir , tempFile .getName () ) );
325
328
326
- assertEquals ( "644" , fileAttributes .getOctalModeString () );
329
+ assertEquals ( "This test will fail if your umask is not X2X (or more)" ,
330
+ "644" , fileAttributes .getOctalModeString () );
327
331
}
328
332
329
333
}
0 commit comments