From 64f07c6c7202769f6a1447c330111986f1203608 Mon Sep 17 00:00:00 2001 From: Josh Poimboeuf Date: Mon, 22 Jul 2019 14:37:59 -0500 Subject: [PATCH] test/unit: Fix symtab generation for ppc64le The ppc64le unit tests are failing because the lookup code is getting confused by the "[: 8]" string in the readelf symbol table output. Remove the string so the lookup code can parse it correctly. kpatch-build already uses the same sed, so they should match. Signed-off-by: Josh Poimboeuf --- test/unit/Makefile.include | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/Makefile.include b/test/unit/Makefile.include index d542a85..e90574b 100644 --- a/test/unit/Makefile.include +++ b/test/unit/Makefile.include @@ -43,7 +43,8 @@ clean: rm -f *.$(EXT_TEST_OUTPUT) *.$(EXT_OUTPUT) %.$(EXT_SYMTAB): - readelf -s --wide $(patsubst %.$(EXT_SYMTAB),%.$(EXT_ORIG),$(@)) >$@ + readelf -s --wide $(patsubst %.$(EXT_SYMTAB),%.$(EXT_ORIG),$(@)) | \ + sed -r 's/\s+\[: 8\]//' >$@ %.$(EXT_TEST_OUTPUT): %.$(EXT_OUTPUT) %.$(EXT_TEST) $(TEST_LIBRARY) @echo "TEST $(@:.$(EXT_TEST_OUTPUT)=)"