From c056fe7375c61b952d7f40d7d09800ea1ae0bdc1 Mon Sep 17 00:00:00 2001 From: Amy Date: Mon, 6 Aug 2018 10:29:08 -0700 Subject: R2RDump - Ignore sensitive properties to pass tests (#19155) * Ignore sensitive properties in tests * Enable for JIT stress * Keep logic for ignoreSensitive in XmlDumper * Only ignoreSensitive when option is set --- src/tools/r2rdump/R2RDump.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/tools/r2rdump/R2RDump.cs') diff --git a/src/tools/r2rdump/R2RDump.cs b/src/tools/r2rdump/R2RDump.cs index aa9413160a..2391de0a0b 100644 --- a/src/tools/r2rdump/R2RDump.cs +++ b/src/tools/r2rdump/R2RDump.cs @@ -61,6 +61,7 @@ namespace R2RDump private TextWriter _writer; private Dictionary _selectedSections = new Dictionary(); private Dumper _dumper; + private bool _ignoreSensitive; private R2RDump() { @@ -91,6 +92,7 @@ namespace R2RDump syntax.DefineOption("sc", ref _sectionContents, "Dump section contents"); syntax.DefineOption("v|verbose", ref verbose, "Dump raw bytes, disassembly, unwindInfo, gcInfo and section contents"); syntax.DefineOption("diff", ref _diff, "Compare two R2R images (not yet implemented)"); + syntax.DefineOption("ignoreSensitive", ref _ignoreSensitive, "Ignores sensitive properties in xml dump to avoid failing tests"); }); if (verbose) @@ -385,7 +387,7 @@ namespace R2RDump if (_xml) { - _dumper = new XmlDumper(r2r, _writer, _raw, _header, _disasm, _disassembler, _unwind, _gc, _sectionContents); + _dumper = new XmlDumper(_ignoreSensitive, r2r, _writer, _raw, _header, _disasm, _disassembler, _unwind, _gc, _sectionContents); } else { -- cgit v1.2.3