Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: internal: log_event_decoder: add test for log_event_decoder #7907

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

nokute78
Copy link
Collaborator

This patch is to add test code for flb_log_event_decoder.


Enter [N/A] in the box, if an item is not applicable to your change.

Testing
Before we can approve your change; please submit the following in a comment:

  • [N/A] Example configuration file for the change
  • Debug log output from testing the change
  • Attached Valgrind output that shows no leaks or memory corruption was found

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

  • [N/A] Run local packaging test showing all targets (including any new ones) build.
  • [N/A] Set ok-package-test label to test for all targets (requires maintainer to do).

Documentation

  • [N/A] Documentation required for this feature

Backporting

  • [N/A] Backport to latest stable release.

Debug/Valgrind output

$ valgrind --leak-check=full bin/flb-it-log_event_decoder 
==50620== Memcheck, a memory error detector
==50620== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==50620== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==50620== Command: bin/flb-it-log_event_decoder
==50620== 
Test create_destroy...                          [ OK ]
==50620== Warning: invalid file descriptor -1 in syscall close()
Test init_destroy...                            [ OK ]
==50620== Warning: invalid file descriptor -1 in syscall close()
Test decode_timestamp...                        [ OK ]
==50620== Warning: invalid file descriptor -1 in syscall close()
Test decode_object...                           [ OK ]
==50620== Warning: invalid file descriptor -1 in syscall close()
Test decoder_next...                            [ OK ]
==50620== Warning: invalid file descriptor -1 in syscall close()
SUCCESS: All unit tests have passed.
==50620== 
==50620== HEAP SUMMARY:
==50620==     in use at exit: 0 bytes in 0 blocks
==50620==   total heap usage: 4,229 allocs, 4,229 frees, 538,370 bytes allocated
==50620== 
==50620== All heap blocks were freed -- no leaks are possible
==50620== 
==50620== For lists of detected and suppressed errors, rerun with: -s
==50620== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

@nokute78 nokute78 temporarily deployed to pr September 10, 2023 02:14 — with GitHub Actions Inactive
@nokute78 nokute78 temporarily deployed to pr September 10, 2023 02:14 — with GitHub Actions Inactive
@nokute78 nokute78 temporarily deployed to pr September 10, 2023 02:15 — with GitHub Actions Inactive
@nokute78 nokute78 temporarily deployed to pr September 10, 2023 02:46 — with GitHub Actions Inactive
@edsiper edsiper merged commit e0de49c into fluent:master Sep 12, 2023
41 of 42 checks passed
@nokute78 nokute78 deleted the test_log_event_decoder branch September 15, 2023 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants