tests-d2d fonts
Tests relating to text seem to output different hashes for Windows and Linux during testing.
Possible problems
- Different Default Fonts
- Windows and Linux has a different set of fonts
- However, trying to load the same fonts on Linux, the fonts still differ, so either this isn't the only issue, or the fonts aren't exactly the same.
- GPU/GPU Driver differences
- This seems to be most likely. I just tested it on my laptop (also running Linux) and the test hashes were different from what I got when running it on my desktop.
- Laptop: Optimus drivers for NVIDIA GTX 1050ti GPU and Intel i7 8th gen CPU with integrated graphics
- Desktop: NVIDIA Drivers for NVIDIA RTX 3050
- This seems to be most likely. I just tested it on my laptop (also running Linux) and the test hashes were different from what I got when running it on my desktop.
Since the issue seems like it might be due to the GPU/GPU Drivers, I'm not quite sure how to fix this test case other than only running it in a VM with standard drivers.
Leave the issue open. Maybe updated the test output so that the "known won't work on other platforms" tests are grouped together with a heading like "These may fail on platforms others than those the test result CRC was generated for". Then, you can make sure they keep working for you. We could also add a second set of CRCs, mine, so at least you and me can run the tests. I think in a professional environment, they would probably set up different dedicated test machines. We are not going to do that. I can't think of a generic solution.
But other than the above, lets punt, and leave the issue open.