From: Mark Wielaard Date: Thu, 16 Nov 2017 12:20:11 +0000 (+0100) Subject: tests: Fix cfi_debug => cfi_debug_bias typo in varlocs assert. X-Git-Tag: elfutils-0.171~107 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1af6c2b9e49f59ea2f01035738525e798bb4f645;p=thirdparty%2Felfutils.git tests: Fix cfi_debug => cfi_debug_bias typo in varlocs assert. We want to check whether the bias is zero, not whether we have dwarf debug_frame cfi. This triggered on a ppc64/ppc64le self-check since it has both debug_frame and eh_frame cfi (other arches often only have eh_frame). Signed-off-by: Mark Wielaard --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 6c8a8e184..01620343f 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2017-11-16 Mark Wielaard + + * varlocs.c (main): Fix cfi_debug => cfi_debug_bias typo in assert. + 2017-11-10 Mark Wielaard * run-exprlocs-self.sh: New test. diff --git a/tests/varlocs.c b/tests/varlocs.c index 3267198f7..0e4322962 100644 --- a/tests/varlocs.c +++ b/tests/varlocs.c @@ -1031,7 +1031,7 @@ main (int argc, char *argv[]) cfi_debug = dwfl_module_dwarf_cfi (mod, &cfi_debug_bias); cfi_eh = dwfl_module_eh_cfi (mod, &cfi_eh_bias); - assert (cfi_debug == 0); // No bias needed, same file. + assert (cfi_debug_bias == 0); // No bias needed, same file. // We are a bit forgiving for object files. There might be // relocations we don't handle that are needed in some