Bug 100686 - Fix integration test issues
Summary: Fix integration test issues
Status: RESOLVED FIXED
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Simon McVittie
QA Contact: D-Bus Maintainers
URL:
Whiteboard: review+
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-04-14 18:40 UTC by Simon McVittie
Modified: 2017-04-18 11:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
AppArmor test: Allow writing to our temporary XDG_RUNTIME_DIR (850 bytes, patch)
2017-04-14 18:40 UTC, Simon McVittie
Details | Splinter Review
transient-services integration test: Create the right directory (1.04 KB, patch)
2017-04-14 18:41 UTC, Simon McVittie
Details | Splinter Review
Ensure hyphen/minus is treated as literal in regexes (2.17 KB, patch)
2017-04-14 18:41 UTC, Simon McVittie
Details | Splinter Review

Description Simon McVittie 2017-04-14 18:40:16 UTC
I've been seeing some dbus test failures in tests that only work as integration tests on a full system, and one spuriously skipped test.
Comment 1 Simon McVittie 2017-04-14 18:40:40 UTC
Created attachment 130846 [details] [review]
AppArmor test: Allow writing to our temporary  XDG_RUNTIME_DIR
Comment 2 Simon McVittie 2017-04-14 18:41:14 UTC
Created attachment 130847 [details] [review]
transient-services integration test: Create the right  directory
Comment 3 Simon McVittie 2017-04-14 18:41:42 UTC
Created attachment 130848 [details] [review]
Ensure hyphen/minus is treated as literal in regexes

Each U+002D HYPHEN-MINUS in [0-9A-Za-z_-/.\] is treated as a member of a
range. The third one, which appears to have been intended to be a
literal, is part of an empty range because the starting point
U+005F LOW LINE is greater than the endpoint U+002F SOLIDUS, resulting
in at least some grep implementations not considering U+002D, U+002F
or U+005F to match the pattern. This resulted in one of the
dbus-launch tests being unintentionally skipped when it used a
regex based on the one in the spec. 

regex(7) suggests "To include a literal '-' [in a bracketed character
set], make it the first or last character".
Comment 4 Philip Withnall 2017-04-18 10:14:16 UTC
Comment on attachment 130846 [details] [review]
AppArmor test: Allow writing to our temporary  XDG_RUNTIME_DIR

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

++
Comment 5 Philip Withnall 2017-04-18 10:15:35 UTC
Comment on attachment 130847 [details] [review]
transient-services integration test: Create the right  directory

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

++
Comment 6 Philip Withnall 2017-04-18 10:16:06 UTC
Comment on attachment 130848 [details] [review]
Ensure hyphen/minus is treated as literal in regexes

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

This is wonderously esoteric. ++
Comment 7 Simon McVittie 2017-04-18 11:52:50 UTC
Fixed in git for 1.11.14, 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.