File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 6363 make distclean && make ENABLE_EXT_F=0 check -j$(nproc)
6464 make distclean && make ENABLE_EXT_C=0 check -j$(nproc)
6565 make distclean && make ENABLE_SDL=0 check -j$(nproc)
66+ - name : misalignment test in block emulation
67+ run : |
68+ make -C tests/system/alignment/
69+ make distclean && make ENABLE_EXT_C=0 ENABLE_SYSTEM=1 misalign-in-blk-emu -j$(nproc)
6670 - name : gdbstub test
6771 run : |
6872 make distclean && make ENABLE_GDBSTUB=1 gdbstub-test -j$(nproc)
Original file line number Diff line number Diff line change @@ -289,6 +289,16 @@ misalign: $(BIN) artifact
289289 $(PRINTF ) " Failed.\n" ; \
290290 fi
291291
292+ EXPECTED_misalign = MISALIGNED INSTRUCTION FETCH TEST PASSED!
293+ misalign-in-blk-emu : $(BIN )
294+ $(Q )$(PRINTF ) " Running misalign.elf ... " ; \
295+ if [ " $( shell $( BIN) tests/system/alignment/misalign.elf | tail -n 2) " = " $( strip $( EXPECTED_misalign) ) inferior exit code 0" ]; then \
296+ $(call notice, [OK]) ; \
297+ else \
298+ $(PRINTF ) " Failed.\n" ; \
299+ exit 1; \
300+ fi ;
301+
292302# Non-trivial demonstration programs
293303ifeq ($(call has, SDL) , 1)
294304doom_action := (cd $(OUT ) ; ../$(BIN ) riscv32/doom)
Original file line number Diff line number Diff line change 1818#define TEST_LOGGER (msg ) \
1919 { \
2020 char _msg[] = msg; \
21- TEST_OUTPUT(_msg, sizeof(_msg)); \
21+ TEST_OUTPUT(_msg, sizeof(_msg) - 1 ); \
2222 }
2323
2424extern int * misalign_data ;
You can’t perform that action at this time.
0 commit comments