Task task3 = new MapTask(null, attempt3, 0, new JobSplit.TaskSplitIndex(),
0);
// Let attempt3 also write some logs
writeRealChars(attempt1, attempt3, LogName.SYSLOG, 225, 'C');
// Finish the JVM.
JVMInfo jvmInfo = new JVMInfo(attemptDir,
Arrays.asList((new Task[] { task1, task2, task3 })));
logManager.addLogEvent(new JvmFinishedEvent(jvmInfo));
// The log-file should now be truncated.
assertTrue(attemptDir.exists());