From: Jérémie Galarneau Date: Wed, 17 Dec 2014 20:37:21 +0000 (-0500) Subject: Revert test fix: uncomment trace unlink X-Git-Tag: v2.0.0-pre1~1440 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=543409b06210e4f5545758941025e9eb439affe4 Revert test fix: uncomment trace unlink 8c627304e5adb715ef3d359ac24febab2bb279b3 introduced changes that were unintended, namely commenting the trace unlinking in the CTFWriter test suite. Signed-off-by: Jérémie Galarneau --- diff --git a/tests/lib/test_ctf_writer.c b/tests/lib/test_ctf_writer.c index 232a1f91..091cc993 100644 --- a/tests/lib/test_ctf_writer.c +++ b/tests/lib/test_ctf_writer.c @@ -90,7 +90,7 @@ void validate_metadata(char *parser_path, char *metadata_path) parser_output_fd = mkstemp(parser_output_path); metadata_fd = open(metadata_path, O_RDONLY); - //unlink(parser_output_path); + unlink(parser_output_path); if (parser_output_fd == -1 || metadata_fd == -1) { diag("Failed create temporary files for metadata parsing."); @@ -204,7 +204,7 @@ void validate_trace(char *parser_path, char *trace_path) } babeltrace_output_fd = mkstemp(babeltrace_output_path); - //unlink(babeltrace_output_path); + unlink(babeltrace_output_path); if (babeltrace_output_fd == -1) { diag("Failed to create a temporary file for trace parsing."); @@ -1862,7 +1862,7 @@ int main(int argc, char **argv) struct dirent *entry; while ((entry = readdir(trace_dir))) { if (entry->d_type == DT_REG) { - //unlinkat(dirfd(trace_dir), entry->d_name, 0); + unlinkat(dirfd(trace_dir), entry->d_name, 0); } }