QVERIFY(!path.isEmpty())

(and style note: no space after the macro)