Skip to content

dev/franku/master/messages resource#414

Merged
franku merged 17 commits intomasterfrom
dev/franku/master/messages_resource
Feb 10, 2020
Merged

dev/franku/master/messages resource#414
franku merged 17 commits intomasterfrom
dev/franku/master/messages_resource

Conversation

@franku
Copy link
Contributor

@franku franku commented Feb 10, 2020

Combined system-/unittest to check output of the configurable message destinations.

@franku franku force-pushed the dev/franku/master/messages_resource branch from cbba9cf to 754dbd6 Compare February 10, 2020 12:50
@pstorz
Copy link
Member

pstorz commented Feb 10, 2020

I would suggest to move "tests/messages.cc" to "tests/messages_resource_test.cc"
See the names of the other files in the tests directory.

@franku franku force-pushed the dev/franku/master/messages_resource branch from 754dbd6 to 540af52 Compare February 10, 2020 17:12
Copy link
Member

@pstorz pstorz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Fixes #1184: Using syslog or an invalid message type crashes a daemon

Do not use NULL or nullptr as const string& argument for ScanTypes
in case of an invalid destination string or for the syslog message destination
- call the messages unittest to distribute a message
- check if the desired files exist and contain the expected message
- rename filenames
- add a environment variable for the logfile path
- add the destinations to the messages resource
- reword the test string
- renamed variables
- use only one map for the filepointers
- reordered the initialization
- this name matches the corresponding unittest
@franku franku force-pushed the dev/franku/master/messages_resource branch from 540af52 to 04e108a Compare February 10, 2020 20:55
@franku franku merged commit cf046c8 into master Feb 10, 2020
@franku franku deleted the dev/franku/master/messages_resource branch April 6, 2020 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants