[php-src] PR #14922: Fix skip condition of gh13082.phpt
| From: | cmb69 | Date: | Thu, 11 Jul 2024 16:13:26 +0000 |
| Subject: | [php-src] PR #14922: Fix skip condition of gh13082.phpt | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27191@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14922
Author: cmb69
The test failure is not particularly related to Travis, but rather is caused by the GD font file to
only be suitable for platforms where
int stores 32bit values in little endian byte
order. This platform dependence is documented in the source code[1]. Thus we fix the skip
condition and skip reason accordingly.
An alternative would be to dynamically create the font file just before running the test, but that
appears to be overkill.
[1] <https://github.com/php/php-src/blob/d59691c02fa77b65855ebbcd5f50aaac034ab75d/ext/gd/gd.c#L545-L556>
---
Note that this is a follow up to https://github.com/php/php-src/pull/13208.
The skip reason might be improved; I've kept it as short as possible for now.