mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
add WinCEDriver.cpp
This commit is contained in:
parent
569f112798
commit
7033ae37da
30
Encodings/testsuite/src/WinCEDriver.cpp
Normal file
30
Encodings/testsuite/src/WinCEDriver.cpp
Normal file
@ -0,0 +1,30 @@
|
||||
//
|
||||
// WinCEDriver.cpp
|
||||
//
|
||||
// Console-based test driver for Windows CE.
|
||||
//
|
||||
// Copyright (c) 2004-2010, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
//
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
//
|
||||
|
||||
|
||||
#include "CppUnit/TestRunner.h"
|
||||
#include "EncodingsTestSuite.h"
|
||||
#include <cstdlib>
|
||||
|
||||
|
||||
int wmain(int argc, wchar_t* argv[])
|
||||
{
|
||||
std::vector<std::string> args;
|
||||
for (int i = 0; i < argc; ++i)
|
||||
{
|
||||
char buffer[1024];
|
||||
std::wcstombs(buffer, argv[i], sizeof(buffer));
|
||||
args.push_back(std::string(buffer));
|
||||
}
|
||||
CppUnit::TestRunner runner;
|
||||
runner.addTest("EncodingsTestSuite", EncodingsTestSuite::suite());
|
||||
return runner.run(args) ? 0 : 1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user