X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=t%2Flogs%2Fbad-multiline;h=e7c179b0823537824d8a1affd7a7a6c918cb8226;hb=9e0473a48cbaa821c36fb9c456c25b203d46c87c;hp=490690a1584e7cdc1a335b125df18f04e93e799e;hpb=0df26c1c2b30a44adc06f9c93650a6f2e31475c0;p=blhc%2Fblhc.git diff --git a/t/logs/bad-multiline b/t/logs/bad-multiline index 490690a..e7c179b 100644 --- a/t/logs/bad-multiline +++ b/t/logs/bad-multiline @@ -1,3 +1,5 @@ +dpkg-buildpackage: source package test + # Command over multiple lines. gcc \ -g -O2 -fstack-protector\ @@ -9,6 +11,15 @@ gcc -g -O2 -fstack-protector -Wformat -Wformat-security -Werror=format-security\ gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -c test-c.c gcc -Wl,-z,relro -o test test-a.o test-b.o test-c.o\ -ltest +gcc -o\ +test test-c.o test-a.o test-b.o\ + -ltest +gcc -o \ +test test-c.o test-b.o test-a.o\ + +gcc -o \ +test test-b.o test-a.o test-c.c\ + # Multiple commands in a single line. gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -c test-a.c; gcc -D_FORTIFY_SOURCE=2 -c test-b.c @@ -19,3 +30,16 @@ gcc -g -O2 --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-s gcc -D_FORTIFY_SOURCE=2 -fstack-protector -c test-b.c # Escaped ";" - not really useful, just to check it works. gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security \; -Werror=format-security -D_FORTIFY_SOURCE=1 -c test-a.c + + +if ./bin-aux/missing --run makeinfo \ + test.texi > test.info; \ +then \ + echo good; \ +else + echo bad; \ +fi; \ +gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=1 -c test-b.c + +gcc -c test.c `echo -g -O2 -fstack-protector --param=ssp-buffer-size=4 echo -Wformat -Wformat-security -Werror=format-security | sed 's/.../; s/.../'` -o test.o +gcc -c test.c `echo -g -O2 -fstack-protector --param=ssp-buffer-size=4 echo -Wformat -Wformat-security -Werror=format-security | sed "s/.../; s/.../"` -o test.o