Tests: test_uuid: unchecked return value
[lttng-tools.git] / tests / unit / test_uuid.cpp
index 403e1f0ea22a841da69ca3aca80687f745e07f6a..07a2f4afb221d393f5fc9c5dfb095520e5927d05 100644 (file)
@@ -108,12 +108,15 @@ void run_test_lttng_uuid_is_equal(void)
        int ret;
        lttng_uuid uuid1, uuid2;
 
-       lttng_uuid_from_str(valid_str_1, uuid1);
-       lttng_uuid_from_str(valid_str_1, uuid2);
+       ret = lttng_uuid_from_str(valid_str_1, uuid1);
+       assert(ret == 0);
+       ret = lttng_uuid_from_str(valid_str_1, uuid2);
+       assert(ret == 0);
        ret = uuid1 == uuid2;
        ok(ret == true, "lttng_uuid_is_equal - Compare same UUID, expect success");
 
-       lttng_uuid_from_str(valid_str_2, uuid2);
+       ret = lttng_uuid_from_str(valid_str_2, uuid2);
+       assert(ret == 0);
        ret = uuid1 == uuid2;
        ok(ret == false, "lttng_uuid_is_equal - Compare different UUID, expect failure");
 }
This page took 0.022883 seconds and 4 git commands to generate.