Commit Graph

413 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Guenter Obiltschnig
ea52ac5358 do not use of UINT64_C 2015-09-09 13:30:14 +02:00
Guenter Obiltschnig
f315dc603e fix for pre-C++11 compilers 2015-09-09 12:59:35 +02:00
Guenter Obiltschnig
15f034cbbd fix GH #931: make strToInt() more strict in what it accepts 2015-09-09 11:14:29 +02:00
FrancisANDRE
d75119648b Merge remote-tracking branch 'pocoproject/develop' into develop 2015-08-24 14:34:28 +02:00
FrancisANDRE
293e7c91f7 use /dev/tty instead /dev/console on Cygwin otherwise a file acces check
makes the test failing.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-22 09:54:29 +02:00
FrancisANDRE
d1a8c11f98 skip SharedMemoryTest for DPOCO_NO_SHAREDMEMORY platform
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-21 14:15:13 +02:00
FrancisANDRE
462deab58b condition assert for POCO_NO_FPENVIRONMENT platform
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-21 14:13:56 +02:00
FrancisANDRE
5354989f45 add a newline for clarity
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-21 14:12:27 +02:00
Guenter Obiltschnig
ec71e76f0a PatternFormatter fix, added test 2015-08-20 20:23:13 +02:00
Mazyad Alabduljaleel
5cff648eea Added NotificationQueue::remove function
This includes appropriate tests, which pass on my Mac 10.4 machine
2015-08-06 14:13:11 +04:00
Guenter Obiltschnig
e438061ce7 fixed GH #722: Unicode Converter Test confuses string and char types 2015-07-31 10:23:16 +02:00
Guenter Obiltschnig
d2c64b4493 GH# 878: check for valid hex characters, support SHA-1 name-based UUIDs (v5) 2015-07-31 10:05:58 +02:00
Günter Obiltschnig
8b7b7cc818 again: VS2015: changed optimization for testsuite to custom, due to optimizer bug leading to crash in PBKDF2EngineTest 2015-07-30 18:58:52 +02:00
Günter Obiltschnig
b6ae5128ce added Visual Studio 2015 project files 2015-07-30 15:48:45 +02:00
Günter Obiltschnig
d10c43d0d5 VS2015: changed optimization for testsuite to custom, due to optimizer bug leading to crash in PBKDF2EngineTest 2015-07-30 13:46:00 +02:00
Günter Obiltschnig
6c09516fee Project files for Visual Studio 2015 2015-07-30 11:15:52 +02:00