From a3a135b71e5a331458f604ee0b97f18ca31df7d7 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Fri, 20 Aug 2021 19:56:17 +0200 Subject: [PATCH] fix(test): Fix .incbin test with newer binutils MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The assembler in binutils 2.37 doesn’t want to include /dev/null with a .incbin directive: /tmp/ccbGWiew.s: Assembler messages: /tmp/ccbGWiew.s:4: Error: unable to include `/dev/null' incbin.s: Assembler messages: incbin.s:1: Error: unable to include `/dev/null' --- test/suites/base.bash | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/suites/base.bash b/test/suites/base.bash index a9839009d..ec845efee 100644 --- a/test/suites/base.bash +++ b/test/suites/base.bash @@ -1394,8 +1394,10 @@ EOF if ! $HOST_OS_WINDOWS; then TEST ".incbin" + touch empty.bin + cat <incbin.c -__asm__(".incbin \"/dev/null\""); +__asm__(".incbin \"empty.bin\""); EOF $CCACHE_COMPILE -c incbin.c @@ -1404,7 +1406,7 @@ EOF expect_stat unsupported_code_directive 1 cat <incbin.s -.incbin "/dev/null"; +.incbin "empty.bin"; EOF $CCACHE_COMPILE -c incbin.s -- 2.47.2