Skip to content

Commit a43cc83

Browse files
committed
Fix windows tests
1 parent 50ebf64 commit a43cc83

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/BinaryCompatibilityTestCase.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function skipIfVersionNotCompatible(Version $version, string $binary):
5353
public function testWindowsBinaryCompatibility(Version $version): void
5454
{
5555
if (!\is_file(self::DIR_STORAGE . '/SDL2.dll')) {
56-
Downloader::zip(\vsprintf('https://www.libsdl.org/release/SDL2-2.0.10-win32-x64.zip', [
56+
Downloader::zip(\vsprintf('https://www.libsdl.org/release/SDL2-2.0.20-win32-x64.zip', [
5757
$version->toString()
5858
]))
5959
->extract('SDL2.dll', self::DIR_STORAGE . '/SDL2.dll');
@@ -64,6 +64,9 @@ public function testWindowsBinaryCompatibility(Version $version): void
6464
->extract('SDL2_ttf.dll', self::DIR_STORAGE . '/SDL2_ttf.dll');
6565
}
6666

67+
// Set LoadLibrary linker directory
68+
\chdir(\dirname($binary));
69+
6770
$this->skipIfVersionNotCompatible($version, $binary);
6871
$this->assertHeadersCompatibleWith(SDL2TTF::create($version), $binary);
6972
}

0 commit comments

Comments
 (0)