ohos: use QTemporaryDir in tst_qwebp::writeImage()
In certain environments, the current working directory during test
execution may be read-only.
To resolve this and make the test more robust, write and remove the
temporary test image using `QTemporaryDir` instead of relying on the
current working directory.
Change-Id: I05bffb441c0c3bd65ddf4b32a589d22e6aef8b6b
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
| commit | 4f9c35e3858b6dfb700ba594fd182086f7aa0e44 |
| parent | 4c5229a8cefd3433bbd6510caa7b531840d83eb4 |
| author | Dennis Kim <dennis.kim@qt.io> |
| committer | Liang Qi <liang.qi@qt.io> |
| commit time | Fri, 22 May 2026 08:46:04 +0000 |