[Scummvm-git-logs] scummvm master -> 72f86c276032907d3db69693b00a57a9861b67fc

lephilousophe noreply at scummvm.org
Sat Oct 25 15:15:14 UTC 2025


This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
abd417d179 TEST: Fix vector test failure
72f86c2760 TEST: Fix re.sub DeprecationWarning


Commit: abd417d1799cf6d348ff32f37aa7ed18c8d93615
    https://github.com/scummvm/scummvm/commit/abd417d1799cf6d348ff32f37aa7ed18c8d93615
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-10-25T17:06:47+02:00

Commit Message:
TEST: Fix vector test failure

On latest Debian 32-bit, the compiler doesn't check against a float
constant but against a long double one which makes the check fail.
This is because 2.2 can't be represented precisely in IEEE 754.
Use 2.25f which can be instead.

Changed paths:
    test/math/vector3d.h


diff --git a/test/math/vector3d.h b/test/math/vector3d.h
index 8534bdc9a24..2dcf484b9d3 100644
--- a/test/math/vector3d.h
+++ b/test/math/vector3d.h
@@ -12,16 +12,16 @@ public:
 		TS_ASSERT(v.y() == 0.0f);
 		TS_ASSERT(v.z() == 0.0f);
 
-		Math::Vector3d v2(3, 2.2, 1);
+		Math::Vector3d v2(3, 2.25, 1);
 
 		TS_ASSERT(v2.x() == 3.0f);
-		TS_ASSERT(v2.y() == 2.2f);
+		TS_ASSERT(v2.y() == 2.25f);
 		TS_ASSERT(v2.z() == 1.0f);
 
 		Math::Vector3d v3(v2);
 
 		TS_ASSERT(v3.x() == 3.0f);
-		TS_ASSERT(v3.y() == 2.2f);
+		TS_ASSERT(v3.y() == 2.25f);
 		TS_ASSERT(v3.z() == 1.0f);
 	}
 


Commit: 72f86c276032907d3db69693b00a57a9861b67fc
    https://github.com/scummvm/scummvm/commit/72f86c276032907d3db69693b00a57a9861b67fc
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-10-25T17:13:40+02:00

Commit Message:
TEST: Fix re.sub DeprecationWarning

count will be a keyword-only argument. As 0 is the default (replace all
occurences, which is expected), remove it.

Changed paths:
    test/cxxtest/cxxtestgen.py


diff --git a/test/cxxtest/cxxtestgen.py b/test/cxxtest/cxxtestgen.py
index c557d6cfa8c..9bcc863ad12 100755
--- a/test/cxxtest/cxxtestgen.py
+++ b/test/cxxtest/cxxtestgen.py
@@ -162,7 +162,7 @@ def expandWildcards( patterns ):
 
 def fixBackslashes( fileName ):
     '''Convert backslashes to slashes in file name'''
-    return re.sub( r'\\', '/', fileName, 0 )
+    return re.sub( r'\\', '/', fileName )
 
 def scanInputFiles(files):
     '''Scan all input files for test suites'''




More information about the Scummvm-git-logs mailing list