summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/test-bus-error.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-30 19:53:33 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-30 19:53:33 +0100
commit763e20e675799e9c8d8b62857cdd01126b62e9a9 (patch)
tree2c871af3338eadfa19ab0d5ae3eeac489a59dddb /src/libsystemd-bus/test-bus-error.c
parent79f8d3d2ce51e992493f2d354a5764262c9d564a (diff)
bus: use "System.Error." as prefix for implicit errno bus errors
We probably shouldn't use "Posix.Error" since many of the errors have nothing to do with Posix.
Diffstat (limited to 'src/libsystemd-bus/test-bus-error.c')
-rw-r--r--src/libsystemd-bus/test-bus-error.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsystemd-bus/test-bus-error.c b/src/libsystemd-bus/test-bus-error.c
index 16c75a3f69..b78be5499c 100644
--- a/src/libsystemd-bus/test-bus-error.c
+++ b/src/libsystemd-bus/test-bus-error.c
@@ -86,19 +86,19 @@ int main(int argc, char *argv[]) {
assert_se(sd_bus_error_is_set(&second));
assert_se(!sd_bus_error_is_set(&error));
- assert_se(sd_bus_error_set_const(&error, "Posix.Error.EUCLEAN", "Hallo") == -EUCLEAN);
- assert_se(streq(error.name, "Posix.Error.EUCLEAN"));
+ assert_se(sd_bus_error_set_const(&error, "System.Error.EUCLEAN", "Hallo") == -EUCLEAN);
+ assert_se(streq(error.name, "System.Error.EUCLEAN"));
assert_se(streq(error.message, "Hallo"));
- assert_se(sd_bus_error_has_name(&error, "Posix.Error.EUCLEAN"));
+ assert_se(sd_bus_error_has_name(&error, "System.Error.EUCLEAN"));
assert_se(sd_bus_error_get_errno(&error) == EUCLEAN);
assert_se(sd_bus_error_is_set(&error));
sd_bus_error_free(&error);
assert_se(!sd_bus_error_is_set(&error));
assert_se(sd_bus_error_set_errno(&error, EBUSY) == -EBUSY);
- assert_se(streq(error.name, "Posix.Error.EBUSY"));
+ assert_se(streq(error.name, "System.Error.EBUSY"));
assert_se(streq(error.message, strerror(EBUSY)));
- assert_se(sd_bus_error_has_name(&error, "Posix.Error.EBUSY"));
+ assert_se(sd_bus_error_has_name(&error, "System.Error.EBUSY"));
assert_se(sd_bus_error_get_errno(&error) == EBUSY);
assert_se(sd_bus_error_is_set(&error));
sd_bus_error_free(&error);