diff --git a/tools/const_finder/test/const_finder_test.dart b/tools/const_finder/test/const_finder_test.dart index 6c6da5d2bcd8c..790420b6c2da3 100644 --- a/tools/const_finder/test/const_finder_test.dart +++ b/tools/const_finder/test/const_finder_test.dart @@ -393,7 +393,11 @@ class _Test { void dispose() { for (final String resource in resourcesToDispose) { stdout.writeln('Deleting $resource'); - File(resource).deleteSync(); + try { + File(resource).deleteSync(); + } on FileSystemException catch (err) { + stderr.writeln(err.toString()); + } } }