Bug 99758 - dbus-object-tree: Correctly report failure from an internal test
Summary: dbus-object-tree: Correctly report failure from an internal test
Status: RESOLVED FIXED
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: D-Bus Maintainers
QA Contact: D-Bus Maintainers
URL:
Whiteboard: review+
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-02-10 11:07 UTC by Philip Withnall
Modified: 2017-02-14 08:59 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
dbus-object-tree: Correctly report failure from an internal test (1.06 KB, patch)
2017-02-10 11:07 UTC, Philip Withnall
Details | Splinter Review
dbus-object-tree test: tolerate OOM in run_decompose_tests() (1.66 KB, patch)
2017-02-13 17:03 UTC, Simon McVittie
Details | Splinter Review

Description Philip Withnall 2017-02-10 11:07:51 UTC
Trivial patch to shut Coverity up and ensure that OOM handling failures in dbus-object-tree aren’t incorrectly reported as successful test passes.

Coverity ID: 54711
Comment 1 Philip Withnall 2017-02-10 11:07:54 UTC
Created attachment 129473 [details] [review]
dbus-object-tree: Correctly report failure from an internal test

Coverity ID: 54711

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Comment 2 Philip Withnall 2017-02-13 13:02:32 UTC
Doing some more testing today, it looks like this might break `make check`, although I’m not sure how I didn’t catch this before. I need to find time to take a closer look.
Comment 3 Simon McVittie 2017-02-13 17:03:49 UTC
Created attachment 129556 [details] [review]
dbus-object-tree test: tolerate OOM in  run_decompose_tests()

This test is run repeatedly, with simulated out-of-memory conditions
at different points. If one of these was during run_decompose_tests(),
the test was recorded as failing. Before Philip fixed it, this was
masked by the failure not being reported correctly (CID: #54711).

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99758

---

Yay OOM-handling.
Comment 4 Philip Withnall 2017-02-13 17:14:07 UTC
Comment on attachment 129556 [details] [review]
dbus-object-tree test: tolerate OOM in  run_decompose_tests()

Review of attachment 129556 [details] [review]:
-----------------------------------------------------------------

++
Comment 5 Simon McVittie 2017-02-14 08:59:11 UTC
Fixed in git for 1.11.10, thanks


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.