- print("=== alignment error ===")
- addr = 0xFF100e0FF
- ld_data = yield from pi_ld(pi, addr, 8, msr_pr=1)
- alignment = yield pi.exc_o.alignment
- happened = yield pi.exc_o.happened
- dar = yield pi.dar_o
- assert(happened==1)
- assert(alignment==1)
- assert(dar==addr)
- yield from wait_busy(pi, no=True) # wait while busy
- # wait is only needed in case of in exception here
- print("=== alignment error test passed ===")
+ if test_exceptions:
+ # causes next test to hang
+ print("=== alignment error ===")
+ addr = 0xFF100e0FF
+ ld_data = yield from pi_ld(pi, addr, 8, msr_pr=1)
+ alignment = yield pi.exc_o.alignment
+ happened = yield pi.exc_o.happened
+ dar = yield pi.dar_o
+ assert(happened==1)
+ assert(alignment==1)
+ assert(dar==addr)
+ yield from wait_busy(pi, debug="pi_ld_E_alignment_error")
+ # wait is only needed in case of in exception here
+ print("=== alignment error test passed ===")