Commit Graph

56 Commits

Author SHA1 Message Date
Matej Kenda
1eebd46c04
Cppunit and data test enhancements (#4616)
* enh(CppUnit): Source code enhancements.

* enh(DataTest): Code enhancements (mostly to use override) to prevent wrong test calls when renaming.
2024-07-30 15:09:58 +02:00
Matej Kenda
ad72b25ace enh: resolve unit test and few other warnings. 2024-05-08 13:25:56 +02:00
Kari Argillander
bf3c519183
Fix some issues found with clang-tidy (#4353)
* directoryiterator: Fix missing inline

Add missing inline to inline function.

This was found with clang-tidy check:  misc-definitions-in-headers

* Convert deprecated throw() to noexcept

throw() has been deprecated in standar in C++17. It has been removed in
C++20. Code still compiles but let's just define these at those should
be.

These where found with clang-tidy check: modernize-use-noexcept

* Fix unnecessary copy initializations

Clang-tidy did find these with check:

  performance-unnecessary-copy-initialization

* Fix some strings not references

Looks like these are just missing reference marks.

---------

Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
2023-12-17 16:55:30 +01:00
Alex Fabijanic
46728024f7 chore(CppUnit): fix comment 2023-11-02 22:13:23 +01:00
Günter Obiltschnig
70bb8f13f9 CppUnit: demangle class names 2023-10-02 07:16:48 +02:00
haorui wang
a41d802ccd
fix(CppUint) : RepeatedTest compile error (#3759)
* chore(CppUnit) : style format and revise comment

fix(CppUnit) : RepeatedTest compile error

* chore(CppUnit) : remove TestResult forward declare in RepeatedTest.h
2022-08-18 11:37:35 -05:00
John Vandenberg
0e6e16645c
Remove trailing whitespace (#3668) 2022-07-07 04:18:20 -05:00
Alex Fabijanic
980cd0273b fix(CppUnit): CppUnit notEqualsMessage causing compile errors #3615 2022-05-29 11:46:33 -05:00
Alex Fabijanic
a17a7bf027 fix(CppUnit): enable_if disarm numeric notEqualsMessage 2022-05-29 09:13:30 -05:00
Günter Obiltschnig
0c242e9b2a CppUnit: add generic assertEquals 2022-05-17 09:08:02 +02:00
Aleksandar Fabijanic
7db9831f32
Netssl/openssl3 (#3575)
* feat(Context): DH init openssl3 port (1/2 hardcoded params)

* create poco-1.11.3 branch, bump version

* update copyright date

* #3567: check legacy provider existence for legacy exception #3567

* fix(Placeholder): comparison for zero value

* feat(Context): DH init openssl3 port (2/2 params from file)

* test(HTTPSClientSession): try/catch to understand CI failure

* chore(cmake): copy the DH parameters file

* fix(OpenSSLInitializer): unload provider on uninitialize

* chore(HTTPSClientSessionTest): remove try/catch

* fix(OpenSSLInitializer): fix provider unloading

* feat(CppUnit): make tests exceptions more descriptive

* chore(CppUnit): a more descriptive name for callback

Co-authored-by: Günter Obiltschnig <guenter.obiltschnig@appinf.com>
2022-04-28 22:24:43 -05:00
Günter Obiltschnig
8445f4e2de remove unused CppUnit headers 2022-02-19 18:42:27 +01:00
Günter Obiltschnig
ed21f39b03 fix CppUnit lib name 2020-01-12 21:13:18 +01:00
Günter Obiltschnig
1bf40a0cd2 merge some changes from develop branch; modernize and clean-up code; remove support for compiling without POCO_WIN32_UTF8 2020-01-09 10:08:09 +01:00
Günter Obiltschnig
5284be25ae style fixes 2020-01-04 12:38:43 +01:00
Günter Obiltschnig
09919478ce fix test result reporting 2020-01-04 12:34:28 +01:00
Günter Obiltschnig
b9cc21867b fix warnings 2020-01-04 09:58:23 +01:00
Francis ANDRE
6a81580533 Add -ignore <file> option to get rid of DOS script issues.
Rollback to previous rendering.
2019-12-18 16:27:19 +01:00
Günter Obiltschnig
9c197e0ed1 finally get rid of std::auto_ptr 2019-12-15 09:40:40 +01:00
Brice Gros
92db8ba9cd remove remaining reference to enum name 2019-10-18 17:33:14 +02:00
Brice Gros
22c3ae8d30 allow to select long tests to be run from cmdline 2019-10-18 15:09:38 +02:00
Francis ANDRE
1dc771e9bb Backport from develop branch 2018-05-25 09:52:12 +02:00
Francis ANDRE
4bd63a8ef3 Call addSetup from fixture 2018-05-21 22:01:24 +02:00
Francis ANDRE
c0d76f516c Add setup() const accessor 2018-05-21 22:00:48 +02:00
Francis ANDRE
48eab9c4e9 Remove setup(vector<string>) from Fixture template functions 2018-05-21 13:22:28 +02:00
Francis ANDRE
0ca753a481 Fix TestSuite::run() 2018-05-21 11:08:37 +02:00
Francis ANDRE
ef63822c04 Add <vector> 2018-05-21 10:34:21 +02:00
Francis ANDRE
4f292ae0ce Add assertFalse 2018-05-21 09:31:11 +02:00
Francis ANDRE
7f085cbb61 Remove duplicate code 2018-05-21 09:25:36 +02:00
Francis ANDRE
599e6120ad Merge remote-tracking branch 'origin/poco-1.9.1' into poco-1.9.1 2018-05-19 16:29:07 +02:00
Francis ANDRE
91a4cf3b44 Add CppUnit.progen. Add POCO_NO_AUTOMATIC_LIBS 2018-05-19 16:16:22 +02:00
Francis ANDRE
de15794a10
Add #pragma comment(lib, "PocoCppUnit") 2018-05-19 15:41:31 +02:00
Francis ANDRE
904b0061eb Add -setup, a command line argument. 2018-05-19 15:04:59 +02:00
Francis ANDRE
5871847cdb Add class name as qualifier 2018-05-10 18:19:35 +02:00
zosrothko
960ecb38f0 Poco 1.9.1 assert true (#2255)
* Rename assert by assertTrue

* Update submodules

* Missing assertTrue

* Rename poco_assertTrue to poco_assert

* Rename poco_assertTrue to poco_assert
2018-03-29 11:12:54 -06:00
Francis ANDRE
8d5353b207 Add forwarding Poco/CppUnit/*h for compatibility between 1.x and 2.X 2018-03-25 08:25:59 +02:00
Alex Fabijanic
1a18621ff8 ifdef auto_ptr 2017-10-24 21:55:33 -05:00
Günter Obiltschnig
04e7e04d4d Remove \$Id`$ headers 2017-09-09 11:14:06 +02:00
root
895c3dfcd5 use std::unique_ptr instead of std::auto_ptr with C++11+ compilers to prevent std::auto_ptr deprecation warnings 2016-10-14 11:49:45 +02:00
Guenter Obiltschnig
16885da987 test failures can be ignored for certain tests (specified in CPPUNIT_IGNORE environment variable) 2014-01-16 18:07:03 +01:00
aleks-f
ef9cda6666 GH #26: Cannot compile on gcc
GH #26: Cannot compile on gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 using
compiler flag pedantic
2012-12-12 23:02:20 -06:00
Aleksandar Fabijanic
8a4eafd05a - strToInt benchmark and more optimization
- warnmsg macro in CppUnit
2012-10-01 00:52:53 +00:00
Aleksandar Fabijanic
8f747fabdc gcc/linux compile/tests 2012-09-30 13:10:51 +00:00
Aleksandar Fabijanic
5a639074d9 change EOL to 'native' 2012-04-29 18:52:25 +00:00
Aleksandar Fabijanic
d75e68c027 new trunk (base for 1.5)
windows build only
2012-04-23 01:14:34 +00:00
Aleksandar Fabijanic
f9b60296f7 removing old trunk files 2012-04-23 00:43:14 +00:00
Marian Krivos
ff7f224691 cppunit: update from 1.4.2 & vs 2010 project 2011-09-14 12:43:03 +00:00
Aleksandar Fabijanic
e812e7bf46 workaround for hidden files 2007-07-13 19:43:30 +00:00
Peter Schojer
8dafac067b added datadriven testing 2007-07-02 10:35:30 +00:00
Guenter Obiltschnig
95bdb7c51d sync to internal repository 2007-02-23 14:50:42 +00:00