Fix CI checks

Checking for 'unexpected' will also catch XFAIL tests being PASS.
This commit is contained in:
Marc Poulhiès 2021-03-31 10:26:37 +02:00 committed by Philip Herron
parent 16b1b9579d
commit c044fda54b
1 changed files with 12 additions and 3 deletions

View File

@ -46,8 +46,17 @@ jobs:
cd gccrs-build; \
make -j $(nproc)
- name: Test
- name: Run Tests
run: |
cd gccrs-build; \
make check-rust | tee results.log; \
if [ `grep "# of unexpected failures" results.log | wc -l` != "0" ]; then exit 1; fi
make check-rust
- name: Check regressions
run: |
cd gccrs-build; \
if grep "# of unexpected" gcc/testsuite/rust/rust.sum;\
then \
echo "some tests are not correct"; \
exit 1; \
else \
exit 0; \
fi