Skip to content

Commit

Permalink
Add expected-fail test for rom with no data accepting everything
Browse files Browse the repository at this point in the history
  • Loading branch information
0-wiz-0 committed Feb 23, 2024
1 parent cb87668 commit d1a5a8e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions regress/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ set(DBS
mamedb-file-no-crc.db
mamedb-lost-parent-ok.db
mamedb-merge-parent.db
mamedb-no-data.db
mamedb-one-game-two-roms.db
mamedb-parent-crcdiff.db
mamedb-parent-no-common.db
Expand Down Expand Up @@ -141,6 +142,8 @@ set(XFAIL_TESTS
file-no-crc-wrong-name-other-set.zip.test
rom-from-extra-loose-directory.zip.test
rom-from-extra-loose-toplevel.zip.test
rom-no-data.dir.test
rom-no-data.zip.test
unknown-rename-failed.zip.test
)

Expand Down
12 changes: 12 additions & 0 deletions regress/mamedb-no-data.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
clrmamepro (
name "ckmame test db"
version 1
)

game (
name nodata
description "no data"
manufacturer "synth"
year 2024
rom ( name 04.rom )
)
10 changes: 10 additions & 0 deletions regress/rom-no-data.vtest
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description test single-rom game with no data at all
return 0
arguments -cFv -e extra -D ../mamedb-no-data.db nodata
file extra/nodata.zip 1-4-ok.zip
file roms/.ckmame.db {} <inline.ckmamedb>
end-of-inline-data
stdout
In game nosize:
game nosize : correct
end-of-inline-data

0 comments on commit d1a5a8e

Please sign in to comment.