test-attach-flags: make sure to restore kdbus attach_flags_mask on errors
authorDjalal Harouni <tixxdz@opendz.org>
Fri, 9 Jan 2015 22:18:45 +0000 (23:18 +0100)
committerDjalal Harouni <tixxdz@opendz.org>
Fri, 9 Jan 2015 22:18:45 +0000 (23:18 +0100)
commit253c8454597dcf91516ff0e452ff9dccb3b9f458
treecf6dee0af6a2f3e59d62384d02b343f396d98cef
parent4367080952472a39e33bf1aab075a71b95fa412b
test-attach-flags: make sure to restore kdbus attach_flags_mask on errors

If one of the test fails, then always restore
/sys/module/kdbus/parameters/attach_flags_mask to its previous saved
value.

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
test/test-attach-flags.c