Skip to content

Commit

Permalink
fix(DataTest): SQLChannel *nix build and test run #4529
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-f committed Jul 15, 2024
1 parent 75b52e1 commit 151882b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Data/testsuite/src/DataTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "Poco/DirectoryIterator.h"
#include "Poco/Glob.h"
#include "Poco/File.h"
#include "Poco/Path.h"
#include <string>
#include <cstring>
#include <sstream>
Expand All @@ -46,12 +47,9 @@


using namespace Poco;
using namespace Poco::Dynamic;
using Poco::Dynamic::Var;
using namespace Poco::Data;
using namespace Poco::Data::Keywords;
using Poco::DirectoryIterator;
using Poco::Glob;
using Poco::File;
using namespace std::string_literals;


Expand Down Expand Up @@ -1545,7 +1543,9 @@ void DataTest::testSQLParse()

void DataTest::testSQLChannel()
{
std::string dir = Path::tempHome();
AutoPtr<SQLChannel> pChannel = new SQLChannel();
pChannel->setProperty("directory", dir);
Stopwatch sw; sw.start();
while (!pChannel->isRunning())
{
Expand All @@ -1556,7 +1556,7 @@ void DataTest::testSQLChannel()

Glob g("*.log.sql");
{
DirectoryIterator it(""s);
DirectoryIterator it(dir);
DirectoryIterator end;
while (it != end)
{
Expand All @@ -1583,7 +1583,7 @@ void DataTest::testSQLChannel()
pChannel.reset();

int count = 0;
DirectoryIterator it(""s);
DirectoryIterator it(dir);
DirectoryIterator end;
while (it != end)
{
Expand Down

0 comments on commit 151882b

Please sign in to comment.