The trace should be disposed before attempting to delete supplementary
files, otherwise the checkpoint indexer could still be holding a file
handle to the index, and file deletion fails in Windows.
Change-Id: I81f04dfd198c9a49f1dfdce36673e532bdf8b54d
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/91576
Reviewed-by: Hudson CI
Reviewed-by: Marc-André Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-André Laperle <marc-andre.laperle@ericsson.com>
/*******************************************************************************
- * Copyright (c) 2012, 2014 Ericsson
+ * Copyright (c) 2012, 2017 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
public void tearDown() {
fTotalsMod.dispose();
fEventTypesMod.dispose();
- TmfTraceManager.deleteSupplementaryFiles(NonNullUtils.checkNotNull(fTrace));
fTrace.dispose();
+ TmfTraceManager.deleteSupplementaryFiles(NonNullUtils.checkNotNull(fTrace));
}
}
/*******************************************************************************
- * Copyright (c) 2016 EfficiOS Inc., Alexandre Montplaisir
+ * Copyright (c) 2016, 2017 EfficiOS Inc., Alexandre Montplaisir
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
* supplementary files already.
*/
assertFalse(isDirectoryEmpty(suppFilesPath));
-
+ trace.dispose();
TmfTraceManager.deleteSupplementaryFiles(trace);
assertTrue(isDirectoryEmpty(suppFilesPath));