From: Joel Rosdahl Date: Fri, 20 Aug 2021 17:56:17 +0000 (+0200) Subject: fix(test): Fix .incbin test with newer binutils X-Git-Tag: v4.4.1~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3a135b71e5a331458f604ee0b97f18ca31df7d7;p=thirdparty%2Fccache.git fix(test): Fix .incbin test with newer binutils 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' --- 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