X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=t%2Flogs%2Fgood-multiline;fp=t%2Flogs%2Fgood-multiline;h=cc4a90c89a74574578baf3de5ef95b9cd7db31a3;hb=0df26c1c2b30a44adc06f9c93650a6f2e31475c0;hp=0000000000000000000000000000000000000000;hpb=cf83d58fd04f141f4552050b285e2fbfc8189bcb;p=blhc%2Fblhc.git diff --git a/t/logs/good-multiline b/t/logs/good-multiline new file mode 100644 index 0000000..cc4a90c --- /dev/null +++ b/t/logs/good-multiline @@ -0,0 +1,26 @@ +# Command over multiple lines. +gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 \ +\ +-Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.c +gcc \ + -g -O2 \ +-fstack-protector --param=ssp-buffer-size=4 -Wformat \ +-Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c\ + test-b.c +gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-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 + +# Multiple commands in a single line. +gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.c; gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-b.c +gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.c ; gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-b.c +gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.c;\ +gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-b.c +gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.c ; \ +gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -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=2 -c test-a.c