test-alt-dwarf-file.cc: Fix test result accounting

Message ID 874jdp98gm.fsf@redhat.com
State New
Headers
Series test-alt-dwarf-file.cc: Fix test result accounting |

Commit Message

Dodji Seketeli March 1, 2024, 5:18 p.m. UTC
  Hello,

The first test to fail was causing all subsequent tests to appear as
failing as well.  Fixed thus.

	* tests/test-alt-dwarf-file.cc (main): Re-set the is_ok variable
	to true in the loop.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
Applying to the master branch
---
 tests/test-alt-dwarf-file.cc | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/tests/test-alt-dwarf-file.cc b/tests/test-alt-dwarf-file.cc
index d9d68145..b0de203d 100644
--- a/tests/test-alt-dwarf-file.cc
+++ b/tests/test-alt-dwarf-file.cc
@@ -95,6 +95,7 @@  main()
   abidw = string(get_build_dir()) + "/tools/abidw";
   for (InOutSpec* s = in_out_specs; s->in_elf_path; ++s)
     {
+      is_ok = true;
       abidw_options = s->abidw_options;
       in_elf_path = string(get_src_dir()) + "/tests/" + s->in_elf_path;
       debug_info_dir =