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

earlyoom-1.7 fails TestRss #296

Closed
pacho2 opened this issue Jun 20, 2023 · 0 comments
Closed

earlyoom-1.7 fails TestRss #296

pacho2 opened this issue Jun 20, 2023 · 0 comments

Comments

@pacho2
Copy link

pacho2 commented Jun 20, 2023

As reported downstream at https://bugs.gentoo.org/866725, some tests fail in a really similar way to #221

--- FAIL: TestCli (0.16s)
    --- PASS: TestCli/-h (0.00s)
    --- PASS: TestCli/--help (0.00s)
    --- FAIL: TestCli/#00 (0.00s)
    --- FAIL: TestCli/-p (0.00s)
    --- PASS: TestCli/-v (0.00s)
    --- FAIL: TestCli/-d (0.00s)
    --- FAIL: TestCli/-m_1 (0.00s)
    --- PASS: TestCli/-m_0 (0.00s)
    --- PASS: TestCli/-m_-10 (0.00s)
    --- PASS: TestCli/-m_100 (0.00s)
    --- FAIL: TestCli/-s_2 (0.00s)
    --- FAIL: TestCli/-s_100 (0.00s)
    --- PASS: TestCli/-s_101 (0.00s)
    --- PASS: TestCli/-s_0 (0.00s)
    --- PASS: TestCli/-s_-10 (0.00s)
    --- FAIL: TestCli/-M_325635 (0.00s)
    --- PASS: TestCli/-M_9999999999999999 (0.00s)
    --- PASS: TestCli/-r=0 (0.10s)
    --- FAIL: TestCli/-r_0.1 (0.00s)
    --- FAIL: TestCli/--avoid_MyProcess1 (0.00s)
    --- FAIL: TestCli/--prefer_MyProcess2 (0.00s)
    --- FAIL: TestCli/-i (0.00s)
    --- PASS: TestCli/xyz (0.00s)
    --- PASS: TestCli/-i_1 (0.00s)
    --- FAIL: TestCli/-m_2,1 (0.00s)
    --- FAIL: TestCli/-m_1,2 (0.00s)
    --- PASS: TestCli/-m_1,-1 (0.00s)
    --- PASS: TestCli/-m_1000,-1000 (0.00s)
    --- FAIL: TestCli/-s_2,1 (0.00s)
    --- FAIL: TestCli/-s_1,2 (0.00s)
    --- FAIL: TestCli/-m_5,0 (0.00s)
    --- FAIL: TestCli/-m_5,9 (0.00s)
    --- PASS: TestCli/-M_-1 (0.00s)
    --- PASS: TestCli/-M_2147483648 (0.00s)
    --- PASS: TestCli/-M_4294967296 (0.00s)
    --- PASS: TestCli/-m_-1 (0.00s)
    --- PASS: TestCli/-m_2147483648 (0.00s)
    --- PASS: TestCli/-m_4294967296 (0.00s)
    --- PASS: TestCli/-S_-1 (0.00s)
    --- PASS: TestCli/-S_2147483648 (0.00s)
    --- PASS: TestCli/-S_4294967296 (0.00s)
    --- PASS: TestCli/-s_-1 (0.00s)
    --- PASS: TestCli/-s_2147483648 (0.00s)
    --- PASS: TestCli/-s_4294967296 (0.00s)
    --- FAIL: TestCli/-m_3.14 (0.00s)
    --- FAIL: TestCli/-m_7,3.14 (0.00s)
    --- FAIL: TestCli/-s_12.34 (0.00s)
    --- PASS: TestCli/-m_10_-M_325635 (0.00s)
    --- PASS: TestCli/-S_671088 (0.00s)
    --- FAIL: TestCli/-s_10_-S_671088 (0.00s)
=== RUN   TestRss
    testsuite_cli_test.go:208: rss above 2048 kiB
    testsuite_cli_test.go:210: earlyoom RSS: 2120 kiB
--- FAIL: TestRss (0.00s)
=== RUN   TestParseTuple
warning: SIGTERM value 5.00 is below SIGKILL value 9.00, setting SIGTERM = SIGKILL = 9.00
warning: SIGTERM value 0.00 is below SIGKILL value 5.00, setting SIGTERM = SIGKILL = 5.00
warning: SIGTERM value 4.00 is below SIGKILL value 5.00, setting SIGTERM = SIGKILL = 5.00
--- PASS: TestParseTuple (0.00s)
=== RUN   TestIsAlive
--- PASS: TestIsAlive (0.00s)
=== RUN   TestIsAliveMock
--- PASS: TestIsAliveMock (0.00s)
=== RUN   Test_fix_truncated_utf8
--- PASS: Test_fix_truncated_utf8 (0.00s)
=== RUN   Test_get_vm_rss_kib
--- PASS: Test_get_vm_rss_kib (0.00s)
=== RUN   Test_get_oom_score
--- PASS: Test_get_oom_score (0.00s)
=== RUN   Test_get_comm
    testsuite_unit_test.go:179: process name "earlyoom.test"
--- PASS: Test_get_comm (0.00s)
FAIL
exit status 1
FAIL	github.com/rfjakob/earlyoom	0.163s
rm -r $WORK/b001/
make: *** [Makefile:86: test] Error 1

As it seems to use a bit more memory than the hard coded limit

Thanks a lot

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

1 participant