summaryrefslogtreecommitdiffstats
path: root/src/tests/sbus_codegen_tests.xml
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2014-05-12 22:54:01 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-05-22 17:36:23 +0200
commit58229439447d5617913a5a2e173b78105c694842 (patch)
tree89dab51159dcd56df2b0b4cf0f7491e9b8b9751b /src/tests/sbus_codegen_tests.xml
parent90e04eae7e54ec892a6f239783df94dab5d1ed9a (diff)
downloadsssd-58229439447d5617913a5a2e173b78105c694842.tar.gz
sssd-58229439447d5617913a5a2e173b78105c694842.tar.xz
sssd-58229439447d5617913a5a2e173b78105c694842.zip
SBUS: Return empty string if a string getter returns NULL
In line with getters never returning errors, a getter should return an empty string instead of NULL in case a string-like property in SSSD is not set. Reviewed-by: Stef Walter <stefw@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/tests/sbus_codegen_tests.xml')
-rwxr-xr-xsrc/tests/sbus_codegen_tests.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/sbus_codegen_tests.xml b/src/tests/sbus_codegen_tests.xml
index 74037cc40..c44f38305 100755
--- a/src/tests/sbus_codegen_tests.xml
+++ b/src/tests/sbus_codegen_tests.xml
@@ -120,6 +120,9 @@
<property name="string" type="s" access="read"/>
<property name="object_path" type="o" access="read"/>
+ <!-- Special properties to test error codes -->
+ <property name="null_string" type="s" access="read"/>
+
<!-- Property arrays with every type of basic argument except boolean
which we can't do (yet) -->
<property name="byte_array" type="ay" access="read"/>