xfconf: fix boolean return values (#11645)

* xfconf: fix boolean return values

* add changelog frag
This commit is contained in:
Alexei Znamensky
2026-03-23 08:18:03 +13:00
committed by GitHub
parent 758a445d97
commit a09e879ff2
3 changed files with 43 additions and 4 deletions

View File

@@ -78,6 +78,36 @@ test_cases:
rc: 0
out: ''
err: ''
- id: test_property_set_property_bool_same_value
input:
channel: xfce4-session
property: /general/SaveOnExit
state: present
value_type: bool
value: false
output:
changed: false
previous_value: 'false'
type: bool
value: 'false'
version: 4.18.1
mocks:
run_command:
- command: [/testbin/xfconf-query, --version]
environ: *env-def
rc: 0
out: *version-output
err: ''
- command: [/testbin/xfconf-query, --channel, xfce4-session, --property, /general/SaveOnExit]
environ: *env-def
rc: 0
out: "false\n"
err: ''
- command: [/testbin/xfconf-query, --channel, xfce4-session, --property, /general/SaveOnExit, --create, --type, bool, --set, 'false']
environ: *env-def
rc: 0
out: ''
err: ''
- id: test_property_set_property_bool_false
input:
channel: xfce4-session
@@ -89,7 +119,7 @@ test_cases:
changed: true
previous_value: 'true'
type: bool
value: 'False'
value: 'false'
version: 4.18.1
mocks:
run_command: