Commit Graph

429 Commits

Author SHA1 Message Date
Aleksandar Fabijanic
4b6c11242c Merge pull request #1245 from aaron0x/develop
implement startsWith and endsWith.
2016-04-23 14:04:20 -05:00
Guenter Obiltschnig
a8962bb3b3 fixed GH #1253: ListMap does not maintain insertion order if key already exists
Conflicts:
	Foundation/include/Poco/ListMap.h
2016-04-21 09:34:13 +02:00
aaron0x
43d96a5bcb implement startsWith and endsWith. 2016-04-18 01:14:13 +08:00
Günter Obiltschnig
3e0d788162 fixes for compatibility 2016-04-15 17:40:09 +02:00
Tony Abbott
1db7811ce5 GH #1222 Escape command line arguments passed to Process::launch() on Windows 2016-04-15 16:45:41 +02:00
Miklos Vajna
2b6eb3fd76 GH #1050 Foundation-tests: fix gcc -Wshadow warnings 2016-04-01 11:38:25 +02:00
FrancisANDRE
fd442f100e Remove unused code. Extends Logger::testFormatAny up to 15 args.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2016-03-25 10:04:42 +01:00
Aleksandar Fabijanic
00a787e0cb Merge pull request #945 from aaron0x/RefactoryBinaryReaderWriter
Refactory BinaryReader and BinaryWriter
2016-03-13 23:08:44 -07:00
Alex Fabijanic
2a80322ecb merge dev and resolve conflicts 2016-03-11 20:57:28 -08:00
Mathäus Mendel
473de6d1b1 Fixed compilation on IBM AIX due to name clash with UTF32Char
Both poco and AIX's system header <sys/types.h> defines UTF32Char
type which lead to a name clash and compilation error.
2016-03-11 10:21:40 -03:00
Aleksandar Fabijanic
c3041eefd5 Update TestSuite_vs120.vcxproj 2016-03-07 22:13:28 -08:00
Alex Fabijanic
3eb023132b Merge branch 'develop' into pr/1113
Conflicts:
	Foundation/testsuite/TestSuite_vs120.vcxproj
2016-03-07 21:38:26 -08:00
Alex Fabijanic
92225086a4 generated CppUnit and testsuites VS projects 2016-03-06 20:54:26 -08:00
Günter Obiltschnig
5a1920c935 Merge pull request #1132 from TcT2k/FileDiskSpace
Add partition space information to File class
2016-03-05 15:01:28 +01:00
Guenter Obiltschnig
ad492bdfcc added additional testcase for #1128 2016-02-29 10:43:41 +01:00
Alex Fabijanic
9fef0338ce Poco::NumberFormatter::format(float, precision) rounding changed #1128 (tests fix) 2016-02-28 23:02:51 -06:00
Alex Fabijanic
14a0872556 Poco::NumberFormatter::format(float, precision) rounding changed #1128 2016-02-28 22:59:29 -06:00
Alex Fabijanic
32f3f4a146 merge Data changes (ODBC Sybase, PostgreSQL etc) 2016-02-28 11:06:08 -06:00
Guenter Obiltschnig
4e85aa4df2 fixed GH #1128: Poco::NumberFormatter::format(float, precision) rounding changed 2016-02-28 13:33:21 +01:00
Guenter Obiltschnig
a1d8591dfd fixed GH #1141: Poco::StringTokenizer::TOK_TRIM changes behavior between 1.4 and 1.6
Conflicts:
	Foundation/include/Poco/StringTokenizer.h
	Foundation/src/StringTokenizer.cpp
2016-02-27 16:19:25 +01:00
Tobias Taschner
9972496811 Add partition space information to File class
Add File::totalSpaceImpl(), File::usableSpaceImpl() and File::freeSpaceImpl() to retrieve total, available and usable space in the filesystem for the specified path.
2016-01-22 09:58:40 +01:00
Francis ANDRE
e52e172baf removed includes 2016-01-11 19:00:18 +01:00
Aleksandar Fabijanic
7206943c17 Merge pull request #1117 from vmiklos/cppunit-wshadow-fixes
GH #1050 CppUnit: fix gcc -Wshadow warnings
2016-01-11 10:21:07 -06:00
Miklos Vajna
c39c0aaf9d GH #1050 CppUnit: fix gcc -Wshadow warnings
Also in Foundation tests.
2016-01-11 09:11:46 +01:00
FrancisANDRE
ccf824a806 Merge remote-tracking branch 'pocoproject@github/develop' into PocoCppUnit 2016-01-10 11:57:27 +01:00
Mike Gelfand
0425866486 Allow for process termination when polling with isRunning
On *NIX, one needs to call `waitpid()` in order for process to exit the
zombie state. If one uses `Process::isRunning()` to emulate non-blocking
wait for child process termination, process will stay zombie and function
will always return true.

This commit changes `Process::isRunning()` to call `waitpid()` with
`WNOHANG` instead of using `kill()` when checking for child process (i.e.
the one we have ProcessHandle for), which allows for process termination.
Additional trickery with mutex and event is needed to prevent exceptions
when `Process::isRunning()` and/or `Process::wait()` is called concurrently
on the same handle from different threads.

Fixes #1097.
2016-01-09 02:36:55 +03:00
FrancisANDRE
ce797f7700 Make CppUnit a component of Poco
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2016-01-08 00:17:13 +01:00
FrancisANDRE
bc22588895 .bashrc exists only with bash shell while .profile exists always
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2016-01-05 05:20:40 +01:00
FrancisANDRE
d927b28b7e Exclude from the Debug build temporarly for AppVeyor stability. To be fixed later on.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-13 14:09:07 +01:00
FrancisANDRE
9039ae6b2f Merge remote-tracking branch 'pocoproject@github/develop' into develop
Conflicts:
	buildwin.ps1


Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-13 12:11:35 +01:00
FrancisANDRE
d15d8a604e Exclude from the Debug build temporarly for AppVeyor stability.To be restored later on.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-13 10:09:25 +01:00
FrancisANDRE
2f3230fdaf use VS macro instead of hard literal.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 19:20:23 +01:00
FrancisANDRE
3f1b573b04 No 'd' suffix for TestApp whatever the link mode release or debug
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 18:42:19 +01:00
FrancisANDRE
2c601fd12b Restore suffix for TestLibrary.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 15:34:51 +01:00
FrancisANDRE
48df5efc15 Remove the "d" suffix for TestApp binary.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 14:22:50 +01:00
FrancisANDRE
735689c38c Remove the suffix() from TestLibrary path.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 14:22:13 +01:00
FrancisANDRE
4027a0581b Reformat
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 14:20:33 +01:00
FrancisANDRE
0bb0361ffd Use Clock instead of Timestamp which is inaccurate on multicode CPU.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-11 10:29:14 +01:00
Mike Gelfand
2ea1d07c2c Unmask SIGINT when testing termination by signal
This will ensure that default signal handler is called (instead of possibly
ignoring the signal if it was masked by one of parent processes) and the
process is indeed terminated abnormally.
2015-12-10 21:47:52 +03:00
FrancisANDRE
df5d63f1ef Fix per mikedld on the trap '' SIGINT issue when using bash wait.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-10 19:30:51 +01:00
Aleksandar Fabijanic
cf02d38986 Merge pull request #1066 from fbraem/develop
Escape Unicode in JSON
2015-12-07 11:56:49 -06:00
fbraem
18b92b5b36 Use escape to correctly escape unicode characters 2015-12-07 17:33:10 +01:00
Alex Fabijanic
4499062f0d add rpath for test dynamic library; silence unused warnings for test 2015-12-06 22:08:18 -06:00
FrancisANDRE
3c2a83d2ee Use POCO_BASE for looking for test data directory.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-06 09:07:31 +01:00
Mike Gelfand
3abdb1fc23 Return non-zero from ProcessHandle::wait if killed by signal
Currently, ProcessHandle::wait (and transitively Process::wait) on *NIX
return zero if process was terminated as a result of unhandled signal.
Check if this is the case and return negative signal number instead to
indicate non-graceful process termination.
2015-10-03 15:32:15 +03:00
David Morán
cd01fad478 Added regular expression test for named substrings 2015-09-28 12:13:59 +02:00
aaron0x
0a64390399 Enhance FileChannel purge setting. 2015-09-26 23:31:30 +08:00
aaron0x
3e7f722ca6 1. move flipBytes(float/double) to ByteOrder.
2. remove redundant code from BinaryWriter and BinaryReader.
2015-09-20 05:21:36 +08:00
Guenter Obiltschnig
e63c56cafb added testcase for #936 2015-09-11 14:01:10 +02:00
Guenter Obiltschnig
622d9d4c6c NumberParser::parseHex[64](): allow 0x/0X prefix 2015-09-09 14:38:08 +02:00