tst_qdbusconnection_no_bus: Fix build on Windows

There's no setenv, so use qputenv instead.

Change-Id: I357ff6d0e3d67e199661a9d87c720fc4e0131755
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
This commit is contained in:
Thiago Macieira 2014-12-11 18:13:10 -08:00
parent cfab934186
commit 9434162eda

View File

@ -51,8 +51,8 @@ class tst_QDBusConnectionNoBus : public QObject
public:
tst_QDBusConnectionNoBus()
{
::setenv("DBUS_SESSION_BUS_ADDRESS", "unix:abstract=/tmp/does_not_exist", 1);
::setenv("QT_SIMULATE_DBUS_LIBFAIL", "1", 1);
qputenv("DBUS_SESSION_BUS_ADDRESS", "unix:abstract=/tmp/does_not_exist");
qputenv("QT_SIMULATE_DBUS_LIBFAIL", "1");
}
private slots: