Skip to content

Commit

Permalink
Include the required QRegularExpression header
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Jan 1, 2024
1 parent 6f078e5 commit a6c3a5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/unit/cli/testloggerfetchcommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include <qtpokit/pokitmeter.h>
#include <qtpokit/pokitpro.h>

#include <QRegularExpression>

Q_DECLARE_METATYPE(AbstractCommand::OutputFormat)
Q_DECLARE_METATYPE(DataLoggerService::Metadata)

Expand All @@ -34,7 +36,7 @@ void TestLoggerFetchCommand::metadataRead()
1000, 1234, (quint32)QDateTime::currentSecsSinceEpoch()
};
LoggerFetchCommand command(this);
QTest::ignoreMessage(QtInfoMsg, QRegularExpression(QStringLiteral(R"(Fetching 1,?234 logger sample/s\.{3})"));
QTest::ignoreMessage(QtInfoMsg, QRegularExpression(QStringLiteral(R"(Fetching 1,?234 logger sample/s\.{3})")));
command.metadataRead(metadata);
QCOMPARE(command.metadata.status, metadata.status);
QCOMPARE(command.metadata.scale, metadata.scale);
Expand Down

0 comments on commit a6c3a5c

Please sign in to comment.