Skip to content

Commit

Permalink
Fix windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Mar 12, 2022
1 parent 50ebf64 commit a43cc83
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/BinaryCompatibilityTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected function skipIfVersionNotCompatible(Version $version, string $binary):
public function testWindowsBinaryCompatibility(Version $version): void
{
if (!\is_file(self::DIR_STORAGE . '/SDL2.dll')) {
Downloader::zip(\vsprintf('https://www.libsdl.org/release/SDL2-2.0.10-win32-x64.zip', [
Downloader::zip(\vsprintf('https://www.libsdl.org/release/SDL2-2.0.20-win32-x64.zip', [
$version->toString()
]))
->extract('SDL2.dll', self::DIR_STORAGE . '/SDL2.dll');
Expand All @@ -64,6 +64,9 @@ public function testWindowsBinaryCompatibility(Version $version): void
->extract('SDL2_ttf.dll', self::DIR_STORAGE . '/SDL2_ttf.dll');
}

// Set LoadLibrary linker directory
\chdir(\dirname($binary));

$this->skipIfVersionNotCompatible($version, $binary);
$this->assertHeadersCompatibleWith(SDL2TTF::create($version), $binary);
}
Expand Down

0 comments on commit a43cc83

Please sign in to comment.