summaryrefslogtreecommitdiffstats
path: root/tests/auto/sensors2qmlapi
diff options
context:
space:
mode:
authorLincoln Ramsay <lincoln.ramsay@nokia.com>2012-03-16 16:14:01 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-19 05:42:09 +0100
commit3a2b8fcaa52af48f89ecb95a942aad8ecbfde83a (patch)
tree9a89b0e1ed6b7ac94c16cd0f60422ef0d3fdb304 /tests/auto/sensors2qmlapi
parent53dc7cbe6e6a67132acfafb5230fe0fc897014cc (diff)
Use an environment variable to suppress loading of plugins.
This removes the last use of the sensors_unit_test_hook function so it can be removed. Change-Id: I9f0b27fc69bfe74a151826714e3a1c0e207a7e0c Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
Diffstat (limited to 'tests/auto/sensors2qmlapi')
-rw-r--r--tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp b/tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp
index fd54ea15..30e600a8 100644
--- a/tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp
+++ b/tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp
@@ -59,8 +59,6 @@ QDeclProximitySensor* TestSensorPlugin::stProxi = 0;
QT_BEGIN_NAMESPACE
-Q_SENSORS_EXPORT void sensors_unit_test_hook(int index);
-
class tst_Sensors2QMLAPI : public QObject
{
Q_OBJECT
@@ -86,7 +84,7 @@ protected:
void tst_Sensors2QMLAPI::initTestCase()
{
- sensors_unit_test_hook(0); // change some flags the library uses
+ qputenv("QT_SENSORS_LOAD_PLUGINS", "0"); // Do not load plugins
_plugin.registerSensors();
_tilt = 0;
}