]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-xml: Use ASSERT_OK() instead of ASSERT_GE()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 30 Jun 2025 11:52:08 +0000 (13:52 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 30 Jun 2025 14:49:11 +0000 (15:49 +0100)
Follow up for 7a58b45017c678a2907ece2676372fe6d71e365e

src/test/test-xml.c

index b1e102441a2fe725ce51b8c276a16bbc79ad47c3..1e133e2f5fbd141e6f2d456d89fbd50d86292348 100644 (file)
@@ -16,7 +16,7 @@ static void test_one(const char *data, ...) {
                 const char *nn;
 
                 t = xml_tokenize(&data, &name, &state, NULL);
-                ASSERT_GE(t, 0);
+                ASSERT_OK(t);
 
                 tt = va_arg(ap, int);
                 ASSERT_GE(tt, 0);