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

Unknown test failures #25

Open
githubforced2fabad opened this issue Sep 5, 2024 · 2 comments
Open

Unknown test failures #25

githubforced2fabad opened this issue Sep 5, 2024 · 2 comments

Comments

@githubforced2fabad
Copy link

I'm trying to package fcitx5-chewing for Gnu Guix. I have it working, but the tests fail with this error message.

Could you help me make sense of this error message or maybe you have some idea of why it is failing?

/gnu/store/ibgy9qa52zqmbcfp6m8rwj81bffaiwvb-cmake-minimal-3.24.2/bin/ctest --force-new-ctest-process 
Test project /tmp/guix-build-fcitx5-chewing-5.1.5.drv-0/build
    Start 1: testchewing
1/1 Test #1: testchewing ......................Subprocess aborted***Exception:   0.01 sec
D2024-09-05 00:37:10.645933 i18n.cpp:31] Add gettext domain fcitx5 at /gnu/store/s729m599g0kd7qpfd3qkyv531x8cx6sn-fcitx5-5.1.9/share/locale
D2024-09-05 00:37:10.648312 instance.cpp:1965] Trigger Key: Control+space Zenkaku_Hankaku Hangul
I2024-09-05 00:37:10.648339 instance.cpp:1373] Override Enabled Addons: {chewing, testfrontend, testim}
I2024-09-05 00:37:10.648354 instance.cpp:1374] Override Disabled Addons: {all}
D2024-09-05 00:37:10.648651 addonmanager.cpp:155] Call loadAddon() with testim checkDependencies() returns 0 Dep: [] OptDep: []
I2024-09-05 00:37:10.648753 addonmanager.cpp:193] Loaded addon testim
D2024-09-05 00:37:10.648765 addonmanager.cpp:155] Call loadAddon() with testfrontend checkDependencies() returns 0 Dep: [] OptDep: []
I2024-09-05 00:37:10.648858 addonmanager.cpp:193] Loaded addon testfrontend
I2024-09-05 00:37:10.648974 inputmethodmanager.cpp:189] Found 3 input method(s) in addon testim
I2024-09-05 00:37:10.648995 inputmethodmanager.cpp:116] No valid input method group in configuration. Building a default one
I2024-09-05 00:37:10.649029 instance.cpp:375] Items in Default: [InputMethodGroupItem(keyboard-us,layout=)]
I2024-09-05 00:37:10.649047 instance.cpp:380] Generated groups: [Default]
D2024-09-05 00:37:10.649085 addonmanager.cpp:155] Call loadAddon() with chewing checkDependencies() returns 0 Dep: [] OptDep: [(chttrans, SemanticVersion(0.1.0))]
D2024-09-05 00:37:10.649395 i18n.cpp:31] Add gettext domain fcitx5-chewing at /gnu/store/qyjr8wns9dlm1gknix7wa51pvjdk0czz-fcitx5-chewing-5.1.5/share/locale
D2024-09-05 00:37:10.649521 eim.cpp:301] Set layout to: KB_DEFAULT
I2024-09-05 00:37:10.649538 addonmanager.cpp:193] Loaded addon chewing
D2024-09-05 00:37:10.649581 instance.cpp:2373] Instance::activateInputMethod
D2024-09-05 00:37:10.649594 instance.cpp:2378] Activate: [Last]: [Activating]:keyboard-us
D2024-09-05 00:37:10.649622 instance.cpp:2415] Instance::deactivateInputMethod event_type=4106
D2024-09-05 00:37:10.649632 instance.cpp:2425] Switch reason: 0
D2024-09-05 00:37:10.649642 instance.cpp:2427] Old Input method: keyboard-us
D2024-09-05 00:37:10.649654 instance.cpp:2433] Deactivate: [Last]:keyboard-us [Deactivating]:keyboard-us
D2024-09-05 00:37:10.649668 instance.cpp:2373] Instance::activateInputMethod
D2024-09-05 00:37:10.649678 instance.cpp:2378] Activate: [Last]: [Activating]:chewing
D2024-09-05 00:37:10.649692 instance.cpp:2465] Input method switched
I2024-09-05 00:37:10.649712 testfrontend.cpp:75] KeyEvent key: Control+space isRelease: 0 accepted: 1
D2024-09-05 00:37:10.649739 eim.cpp:445] KeyEvent: z
D2024-09-05 00:37:10.649756 eim.cpp:618] updateUI
D2024-09-05 00:37:10.649772 eim.cpp:572] Text:  Zuin: 
I2024-09-05 00:37:10.649785 testfrontend.cpp:75] KeyEvent key: z isRelease: 0 accepted: 0
F2024-09-05 00:37:10.649802 testchewing.cpp:47] testfrontend->call<ITestFrontend::sendKeyEvent>( uuid, Key("z"), false) failed. 


0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.01 sec

The following tests FAILED:
	  1 - testchewing (Subprocess aborted)
Errors while running CTest
make: *** [Makefile:74: test] Error 8
@wengxt
Copy link
Member

wengxt commented Sep 5, 2024

I don't know the exact reason. The test is sending key "z" to chewing. Since you're on guix, it's more likely that chewing is failing to load required data. You may want to strace the test and see what chewing data file it tries to load.

@githubforced2fabad
Copy link
Author

What is interesting is that if I disable the tests, I can use it just fine. I am using libchewing version 0.5.1 which I know is a bit older. Could the tests be depending on a newer feature of libchewing?

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

No branches or pull requests

2 participants