summaryrefslogtreecommitdiffstats
path: root/include/unotest
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-03-30 18:36:08 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-03-30 23:00:37 +0200
commit9c6142ec26a0ba61b1cf58d1e6bf0b5376394bcd (patch)
treeef88a77bfaf4e1f119a1952d3e9fa58810001a3a /include/unotest
parentRelated: tdf#137577 Be able to select a global named range from Name Box (diff)
downloadcore-9c6142ec26a0ba61b1cf58d1e6bf0b5376394bcd.tar.gz
core-9c6142ec26a0ba61b1cf58d1e6bf0b5376394bcd.zip
Exclude some tests in Windows RDP session
It seems that RDP may change (limit?) color space (even configured to use 32-bit colors), and then some tests start failing like this: Test name: BackendTest::testDrawAlphaBitmapMirrored equality assertion failed - Expected: c[80000000] - Actual : c[84000000] Debugging ImplDrawBitmap in vcl/win/gdi/gdiimpl.cxx, and adding a call to GetPixel immediately after the call to StretchDIBits, shows that the resulting color on the device is different from the color in the bitmap data: e.g., for original color {128, 0, 0} the result is {132, 0, 0}. Calling GetColorAdjustment shows that there's no color adjustments set for the device, so I can't detect or modify the behavior this way. So just disable the tests for now when running in RDP sessions. Change-Id: Ie89d07f18f53e56bed6f7fa58432b8575b4d9f12 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113388 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/unotest')
-rw-r--r--include/unotest/bootstrapfixturebase.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/unotest/bootstrapfixturebase.hxx b/include/unotest/bootstrapfixturebase.hxx
index 85f270b02c2c..ac0e1166f8a6 100644
--- a/include/unotest/bootstrapfixturebase.hxx
+++ b/include/unotest/bootstrapfixturebase.hxx
@@ -66,6 +66,7 @@ public:
virtual void setUp() override;
virtual void tearDown() override;
+ bool isWindowsRDP() const;
};
}