Commit b0381c26 authored by An N Tran's avatar An N Tran :speech_balloon:
Browse files

Fix problems on goldendoodle

parent 81c1ff7f
No related merge requests found
Pipeline #74630 failed with stage
in 2 minutes and 1 second
Showing with 4 additions and 2 deletions
+4 -2
...@@ -40,7 +40,7 @@ tests/%-expected-stdout.txt: tests/%.c ...@@ -40,7 +40,7 @@ tests/%-expected-stdout.txt: tests/%.c
grep '// stdout: ' $^ | sed 's/\/\/ stdout: //' > $@ grep '// stdout: ' $^ | sed 's/\/\/ stdout: //' > $@
tests/%-expected-stderr.txt: tests/%.c tests/%-expected-stderr.txt: tests/%.c
grep '// stderr: ' $^ | sed 's/\/\/ stderr: //' > $@ grep '// stderr: ' $^ | sed 's/\/\/ stderr: //' | head --lines=1 > $@
tests/%-actual-code.txt: bin/% tests/%-actual-code.txt: bin/%
$^ > $(@:code.txt=stdout.txt) 2> $(@:code.txt=stderr.txt); \ $^ > $(@:code.txt=stdout.txt) 2> $(@:code.txt=stderr.txt); \
...@@ -52,6 +52,8 @@ tests/%-actual-code.txt: bin/% ...@@ -52,6 +52,8 @@ tests/%-actual-code.txt: bin/%
echo $$code > $@ echo $$code > $@
%-result: tests/%-actual-code.txt tests/%-expected-code.txt tests/%-expected-stdout.txt tests/%-expected-stderr.txt %-result: tests/%-actual-code.txt tests/%-expected-code.txt tests/%-expected-stdout.txt tests/%-expected-stderr.txt
head --lines=1 $(<:code.txt=stderr.txt) > tmp; \
mv tmp $(<:code.txt=stderr.txt); \
diff -u $(word 3,$^) $(<:code.txt=stdout.txt) && \ diff -u $(word 3,$^) $(<:code.txt=stdout.txt) && \
diff -u $(word 4,$^) $(<:code.txt=stderr.txt) && \ diff -u $(word 4,$^) $(<:code.txt=stderr.txt) && \
diff -u $(word 2,$^) $< && \ diff -u $(word 2,$^) $< && \
......
...@@ -16,7 +16,7 @@ int main() { ...@@ -16,7 +16,7 @@ int main() {
// stdout: HELO // stdout: HELO
// stderr: Invalid heap access: address 0x100001fd8 is not in an allocation or was already freed // stderr: Invalid heap access: address 0x100001fc0 is not in an allocation or was already freed
// stderr: at /lib/x86_64-linux-gnu/libc.so.6(+0x18b675) // stderr: at /lib/x86_64-linux-gnu/libc.so.6(+0x18b675)
// stderr: __strlen_avx2 // stderr: __strlen_avx2
// stderr: strlen-avx2.S:65 // stderr: strlen-avx2.S:65
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment