From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> Leading spaces are allowed. Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> --- tests/expected/logger/errors-check_socket | 7 +++++++ tests/expected/logger/errors-id_with_space | 6 ++++++ tests/ts/logger/errors | 4 ++++ 3 files changed, 17 insertions(+) diff --git a/tests/expected/logger/errors-check_socket b/tests/expected/logger/errors-check_socket index 79a47f4..bf02837 100644 --- a/tests/expected/logger/errors-check_socket +++ b/tests/expected/logger/errors-check_socket @@ -14,6 +14,13 @@ socket data, id_with_space: socket data, id_with_space: +socket data, id_with_space: + +socket data, id_with_space: +<13>Feb 13 23:31:30 id_with_leading space[123]: message + +socket data, id_with_space: + socket data, tag_with_space: <13>Feb 13 23:31:30 A B: tag_with_space diff --git a/tests/expected/logger/errors-id_with_space b/tests/expected/logger/errors-id_with_space index 79bd050..0f3bc45 100644 --- a/tests/expected/logger/errors-id_with_space +++ b/tests/expected/logger/errors-id_with_space @@ -2,3 +2,9 @@ test_logger: failed to parse id: 'A B' ret: 1 test_logger: failed to parse id: 'A B' ret: 1 +test_logger: failed to parse id: '1 23' +ret: 1 +<13>Feb 13 23:31:30 id_with_leading space[123]: message +ret: 0 +test_logger: failed to parse id: '123 ' +ret: 1 diff --git a/tests/ts/logger/errors b/tests/ts/logger/errors index c0fab94..33c1057 100755 --- a/tests/ts/logger/errors +++ b/tests/ts/logger/errors @@ -74,6 +74,10 @@ ts_finalize_subtest ts_init_subtest "id_with_space" logger_fun -t "id_with_space" --id="A B" "message" logger_fun -t "rfc5424_id_with_space" --rfc5424 --id="A B" "message" +logger_fun -t "id_with_space" --id="1 23" "message" +logger_fun -t "id_with_leading space" --id=" 123" "message" +logger_fun -t "id_with_trailing space" --id="123 " "message" + ts_finalize_subtest # should not fail -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html