#6630 closed defect (duplicate)

test_regression_rP26522 fails on Debian

Reported by: Ludovic Rousseau Owned by:
Priority: Should Have Milestone:
Component: Build & Packages Keywords:
Cc: Patch:

Description

I am packing 0ad for Debian/Ubuntu. The code builds fine but the tests execution fails with:

Running cxxtest tests (391 tests)...........Skipping map generator tests (can't find binaries/data/mods/public/maps/random/tests/)
.............................
In TestCGUIText::test_regression_rP26522:
./source/gui/tests/test_CGUIText.h:319: Error: Expected ((g_VFS->Mount(L"", DataDir() / "mods" / "mod" / "", VFS_MOUNT_MUST_EXIST)) == INFO::OK), found (-110100 != 0)
ERROR: Failed to open font file fonts/sans-bold-13.fnt
ERROR: Failed to open font file fonts/sans-10.fnt
./source/gui/tests/test_CGUIText.h:332: Error: Expected (text.GetSize().Height == 14 + 9 + 8 * 2), found (22.0000 != 39)
.............................................................................................................................................................................................................................................Skipping globalscripts tests (can't find binaries/data/mods/public/globalscripts/tests/)
.Skipping component scripts tests (can't find binaries/data/mods/public/simulation/components/tests/setup.js)
................................................................................................................
Failed 1 and Skipped 0 of 391 tests
Success rate: 99%

The complete build log with the error is available at https://people.debian.org/~rousseau/0ad_0.0.26-1_amd64.build

I do not have sans-bold-13.fnt or sans-10.fnt files installed on my Debian system. I also could not find them in any Debian package.

For now I disabled the test for the Debian package and it looks like the game works fine.

It would be nice to have the test fixed for Alpha 27.

Attachments (1)

Disable-test_regression_rP26522.patch (1.9 KB ) - added by Ludovic Rousseau 19 months ago.

Download all attachments as: .zip

Change History (4)

by Ludovic Rousseau, 19 months ago

comment:1 by Ludovic Rousseau, 19 months ago

Component: Non-game systemsBuild & Packages

comment:2 by Vladislav Belov, 19 months ago

Looks like a duplication of #6627.

comment:3 by Stan, 19 months ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.