Mir

unit-tests: LinuxVirtualTerminalTest.use_provided_vt fails sometimes

Bug #1237837 reported by Eleni Maria Stea
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Fix Released
Medium
Eleni Maria Stea
mir (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When I repeatedly run the unit tests, I see some LinuxVirtualTerminalTest.use_provided_vt failures (but not every time I run the tests):

$ valgrind bin/unit-tests --gtest_repeat=10

[...]

[ RUN ] LinuxVirtualTerminalTest.use_provided_vt
unknown file: Failure
C++ exception with description "Failed to stop being a process group" thrown in the test body.
/home/eleni/staging/mir/tests/unit-tests/graphics/gbm/test_linux_virtual_terminal.cpp:160: Failure
Actual function call count doesn't match EXPECT_CALL(mock_fops, tcgetattr(fake_vt_fd, An<struct termios *>()))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
/home/eleni/staging/mir/tests/unit-tests/graphics/gbm/test_linux_virtual_terminal.cpp:162: Failure
Actual function call count doesn't match EXPECT_CALL(mock_fops, tcsetattr(fake_vt_fd, 0, An<const struct termios *>()))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
/home/eleni/staging/mir/tests/unit-tests/graphics/gbm/test_linux_virtual_terminal.cpp:180: Failure
Actual function call count doesn't match EXPECT_CALL(mock_fops, tcsetattr(fake_vt_fd, 0, An<const struct termios *>()))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
/home/eleni/staging/mir/tests/unit-tests/graphics/gbm/test_linux_virtual_terminal.cpp:152: Failure
Actual function call count doesn't match EXPECT_CALL(mock_fops, ioctl(fake_vt_fd, 0x4B3B, An<void*>()))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
/home/eleni/staging/mir/tests/unit-tests/graphics/gbm/test_linux_virtual_terminal.cpp:154: Failure
Actual function call count doesn't match EXPECT_CALL(mock_fops, ioctl(fake_vt_fd, 0x5601, An<void*>()))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
/home/eleni/staging/mir/tests/unit-tests/graphics/gbm/test_linux_virtual_terminal.cpp:156: Failure
Actual function call count doesn't match EXPECT_CALL(mock_fops, ioctl(fake_vt_fd, 0x4B44, An<void*>()))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
/home/eleni/staging/mir/tests/unit-tests/graphics/gbm/test_linux_virtual_terminal.cpp:186: Failure
Actual function call count doesn't match EXPECT_CALL(mock_fops, ioctl(fake_vt_fd, 0x5602, An<void*>()))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
/home/eleni/staging/mir/tests/unit-tests/graphics/gbm/test_linux_virtual_terminal.cpp:145: Failure
Actual function call count doesn't match EXPECT_CALL(mock_fops, ioctl(fake_vt_fd, 0x5606, vt_num))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
/home/eleni/staging/mir/tests/unit-tests/graphics/gbm/test_linux_virtual_terminal.cpp:148: Failure
Actual function call count doesn't match EXPECT_CALL(mock_fops, ioctl(fake_vt_fd, 0x5607, vt_num))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
/home/eleni/staging/mir/tests/unit-tests/graphics/gbm/test_linux_virtual_terminal.cpp:158: Failure
Actual function call count doesn't match EXPECT_CALL(mock_fops, ioctl(fake_vt_fd, 0x4B45, 0x04))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
/home/eleni/staging/mir/tests/unit-tests/graphics/gbm/test_linux_virtual_terminal.cpp:182: Failure
Actual function call count doesn't match EXPECT_CALL(mock_fops, ioctl(fake_vt_fd, 0x4B45, fake_kb_mode))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
/home/eleni/staging/mir/tests/unit-tests/graphics/gbm/test_linux_virtual_terminal.cpp:184: Failure
Actual function call count doesn't match EXPECT_CALL(mock_fops, ioctl(fake_vt_fd, 0x4B3A, fake_kd_mode))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
/home/eleni/staging/mir/tests/unit-tests/graphics/gbm/test_linux_virtual_terminal.cpp:188: Failure
Actual function call count doesn't match EXPECT_CALL(mock_fops, close(fake_vt_fd))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
/home/eleni/staging/mir/tests/unit-tests/graphics/gbm/test_linux_virtual_terminal.cpp:140: Failure
Actual function call count doesn't match EXPECT_CALL(mock_fops, open(StrEq(ss.str()), _))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
[ FAILED ] LinuxVirtualTerminalTest.use_provided_vt (36 ms)

[...]

Tags: testsfail

Related branches

Changed in mir:
assignee: nobody → Eleni Maria Stea (hikiko)
Changed in mir:
status: New → In Progress
summary: - LinuxVirtualTerminalTest.use_provided_vt fails sometimes
+ unit-tests: LinuxVirtualTerminalTest.use_provided_vt fails sometimes
Changed in mir:
importance: Undecided → Medium
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:~mir-team/mir/development-branch at revision None, scheduled for release in mir, milestone Unknown

Changed in mir:
status: In Progress → Fix Committed
tags: added: testsfail
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :
Changed in mir (Ubuntu):
status: New → Fix Released
Changed in mir:
milestone: none → phone-v1-freeze
Changed in mir:
milestone: phone-v1-freeze → 0.0.15
Changed in mir:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.