Skip to content

Commit

Permalink
Doc: Fix compilation issue with QVERIFY2 example
Browse files Browse the repository at this point in the history
Fixes

   error C2124: divide or mod by zero

when compiling the test code (enabled by
713cd83).

Pick-to: 5.15
Change-Id: I2ae39426fc0012f79714ff3d6484d792cab4bd92
Reviewed-by: Edward Welbourne <[email protected]>
  • Loading branch information
kkoehne committed Apr 23, 2020
1 parent 9802b93 commit 10acfec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testlib/doc/snippets/code/src_qtestlib_qtestcase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class TestQString : public QObject
void wrapInFunction()
{
//! [1]
QVERIFY2(qIsNaN(0.0 / 0.0), "Ill-defined division produced unambiguous result.");
QVERIFY2(QFileInfo("file.txt").exists(), "file.txt does not exist.");
//! [1]

//! [2]
Expand Down

0 comments on commit 10acfec

Please sign in to comment.