tests/navi-march: Cover abort at movement prompt

This exposes generation oopses.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2015-11-29 10:53:14 +01:00
parent 863fde5a2c
commit 354b6aea3d
4 changed files with 40 additions and 2 deletions

View file

@ -1,8 +1,11 @@
|| list, change leader, nonsense || list, change leader, nonsense, abort command
navi 2/3/0 i navi 2/3/0 i
fi fi
X X
navi 0
aborted
__cmd added 1 1 0
|| stuck in starting sector || stuck in starting sector
| on sale/unremarkable/dead/foreign/crewless in 0,0 | on sale/unremarkable/dead/foreign/crewless in 0,0
set s 12 500 set s 12 500

View file

@ -1,8 +1,11 @@
|| list, change flagship, nonsense || list, change flagship, nonsense, abort command
march 2/3/0 i march 2/3/0 i
fi fi
X X
navi 0
aborted
__cmd added 1 1 0
|| stuck in starting sector || stuck in starting sector
| on sale/unremarkable/dead/foreign/crewless/loaded in 1,1 | on sale/unremarkable/dead/foreign/crewless/loaded in 1,1
set l 12 500 set l 12 500

View file

@ -58,6 +58,20 @@
Play#1 output Play#1 1 pt patrol boat (#0) stopped at 1,1 Play#1 output Play#1 1 pt patrol boat (#0) stopped at 1,1
Play#1 output Play#1 1 dd destroyer (#2) stopped at 1,1 Play#1 output Play#1 1 dd destroyer (#2) stopped at 1,1
Play#1 output Play#1 6 0 639 Play#1 output Play#1 6 0 639
Play#1 input navi 0
Play#1 command navigate
Play#1 output Play#1 1 Flagship is pt patrol boat (#0)
Play#1 output Play#1 1 . =
Play#1 output Play#1 1 h h h
Play#1 output Play#1 1 c c
Play#1 output Play#1 4 <127.0:127.0: 1,1>
Play#1 input aborted
Play#1 output Play#1 1 pt patrol boat (#0) stopped at 1,1
Play#1 output Play#1 1 command failed
Play#1 output Play#1 6 0 638
Play#1 input __cmd added 1 1 0
Play#1 command __cmd
Play#1 output Play#1 6 0 639
Play#1 input set s 12 500 Play#1 input set s 12 500
Play#1 command set Play#1 command set
Play#1 output Play#1 1 pt patrol boat #12 (lot #0) price set to $500 Play#1 output Play#1 1 pt patrol boat #12 (lot #0) price set to $500
@ -772,6 +786,20 @@
Play#1 output Play#1 1 cav cavalry #0 stopped at 1,1 Play#1 output Play#1 1 cav cavalry #0 stopped at 1,1
Play#1 output Play#1 1 spy infiltrator #2 stopped at 1,1 Play#1 output Play#1 1 spy infiltrator #2 stopped at 1,1
Play#1 output Play#1 6 0 589 Play#1 output Play#1 6 0 589
Play#1 input navi 0
Play#1 command navigate
Play#1 output Play#1 1 Flagship is pt patrol boat (#0)
Play#1 output Play#1 1 . =
Play#1 output Play#1 1 h h h
Play#1 output Play#1 1 c c
Play#1 output Play#1 4 <127.0:127.0: 1,1>
Play#1 input aborted
Play#1 output Play#1 1 pt patrol boat (#0) stopped at 1,1
Play#1 output Play#1 1 command failed
Play#1 output Play#1 6 0 588
Play#1 input __cmd added 1 1 0
Play#1 command __cmd
Play#1 output Play#1 6 0 589
Play#1 input set l 12 500 Play#1 input set l 12 500
Play#1 command set Play#1 command set
Play#1 output Play#1 1 cav cavalry #12 (lot #1) price set to $500 Play#1 output Play#1 1 cav cavalry #12 (lot #1) price set to $500

View file

@ -8,10 +8,14 @@ Connect from 127.0.0.1
Connect from 127.0.0.1 Connect from 127.0.0.1
tester@127.0.0.1 using country #1 tester@127.0.0.1 using country #1
tester@127.0.0.1 logged in as country #1 tester@127.0.0.1 logged in as country #1
Oops: elt->generation != (ef_generation & 0xfff) in ../src/lib/common/file.c:699
Crash dump complete
tester@127.0.0.1 logged out, country #1 tester@127.0.0.1 logged out, country #1
Connect from 127.0.0.1 Connect from 127.0.0.1
tester@127.0.0.1 using country #1 tester@127.0.0.1 using country #1
tester@127.0.0.1 logged in as country #1 tester@127.0.0.1 logged in as country #1
Oops: elt->generation != (ef_generation & 0xfff) in ../src/lib/common/file.c:699
Crash dump complete
tester@127.0.0.1 logged out, country #1 tester@127.0.0.1 logged out, country #1
Connect from 127.0.0.1 Connect from 127.0.0.1
tester@127.0.0.1 using country #0 tester@127.0.0.1 using country #0