public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [PATCH, applied] abidw: Remove temporary .typeid files when using --debug-abidiff
@ 2021-06-10  9:43 Dodji Seketeli
  0 siblings, 0 replies; only message in thread
From: Dodji Seketeli @ 2021-06-10  9:43 UTC (permalink / raw)
  To: libabigail

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(-)

diff --git a/tools/abidw.cc b/tools/abidw.cc
index 2234613b..3f38c695 100644
--- a/tools/abidw.cc
+++ b/tools/abidw.cc
@@ -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 =
-- 
2.30.0


-- 
		Dodji


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-10  9:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-10  9:43 [PATCH, applied] abidw: Remove temporary .typeid files when using --debug-abidiff Dodji Seketeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).