Skip to content

fix(test): memory leaks in unit tests #997

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

Merged
merged 5 commits into from
Mar 28, 2025

Conversation

HuangJian
Copy link
Contributor

Pull request

Issue tracker

Fixes will automatically close the related issue

Fixes #989

Feature

Fix the memory leaks in runing unit tests.

Unit test

  • Done

Manual test

  • Done

Code Review

  1. Unit and manual test pass
  2. GitHub Action CI pass
  3. At least one contributor reviews and votes
  4. Can be merged clean without conflicts
  5. PR will be merged by rebase upstream base

Additional Info

@lotem
Copy link
Member

lotem commented Mar 27, 2025

強強強

不對,lint 報錯是在你改的地方……
看了一下是縮進問題。
public: 前面空一格。後面的代碼空兩格。

@HuangJian
Copy link
Contributor Author

忘了 clang-format 这一出了…… 我再改一下。

@lotem lotem changed the title Fix 989: memory leaks in runing unit tests. fix(test): memory leaks in unit tests Mar 27, 2025
…LL-exported RimeInitialize in GlobalEnvironment::TearDown.

rime#997 (comment)
@@ -1,19 +1,29 @@
#include <gtest/gtest.h>
#include <rime_api.h>
#include <rime_api_impl.h>
Copy link
Member

Choose a reason for hiding this comment

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

須刪掉這行

#include <rime/service.h>
#include <rime/module.h>
Copy link
Member

Choose a reason for hiding this comment

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

這句也不用

@lotem lotem merged commit 6bbb633 into rime:master Mar 28, 2025
10 checks passed
@HuangJian HuangJian deleted the fix-989-memory-leaks-in-tests branch April 28, 2025 02:25
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.

Memory leaks in running tests
2 participants