testlib: fix compile error with macosx10.8

[NSDate date] returns an id, so one needs to send a message instead of
accessing a property.

Backport commit 92b3397a from the 5.5 branch.

Change-Id: Id70915e1ac23994a081765e0a527802fef61b573
Reviewed-by: Tim Blechmann <tim@klingt.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
This commit is contained in:
Tim Blechmann 2015-05-16 14:59:48 +02:00 committed by Jani Heikkinen
parent 1fb3273cfd
commit b0a9eddf4d

View File

@ -126,7 +126,7 @@ private:
if (!([NSDate timeIntervalSinceReferenceDate] > 0)) if (!([NSDate timeIntervalSinceReferenceDate] > 0))
qFatal("error: Device date '%s' is bad, likely set to update automatically. Please correct.", qFatal("error: Device date '%s' is bad, likely set to update automatically. Please correct.",
[NSDate date].description.UTF8String); [[NSDate date] description].UTF8String);
XCTestDriver *testDriver = nil; XCTestDriver *testDriver = nil;
if ([QtTestLibWrapper usingTestManager]) if ([QtTestLibWrapper usingTestManager])