[applied] abidw: Remove temporary .typeid files when using --debug-abidiff
Commit Message
From 923a355f168fc647cd42dc5a137af0ba7fd1886a Mon Sep 17 00:00:00 2001
From: Dodji Seketeli <dodji@redhat.com>
Date: Wed, 9 Jun 2021 10:23:53 +0200
Subject:
I noticed that the temporary typeid file generated by abidw when using
the --debug-abidiff option was left behind. This patch removes it.
* tools/abidw.cc (load_corpus_and_write_abixml): Remove temporary
typeid file after its use.
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
Applied to master.
---
tools/abidw.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
@@ -591,7 +591,10 @@ load_corpus_and_write_abixml(char* argv[],
#ifdef WITH_DEBUG_SELF_COMPARISON
if (opts.debug_abidiff
&& !opts.type_id_file_path.empty())
- load_canonical_type_ids(*read_ctxt, opts.type_id_file_path);
+ {
+ load_canonical_type_ids(*read_ctxt, opts.type_id_file_path);
+ remove(opts.type_id_file_path.c_str());
+ }
#endif
t.start();
corpus_sptr corp2 =