bt_value_copy(): put output parameter as last parameter
[babeltrace.git] / tests / lib / test_bt_values.c
index 6a6ca7c3560a433a48ee4c7882cade7722195deb..9b9cd3a4a72649c471cad41b3042014144423545 100644 (file)
@@ -885,8 +885,7 @@ void test_copy(void)
                string_obj);
        BT_ASSERT(status == BT_VALUE_STATUS_OK);
 
-       status = bt_value_copy(&map_copy_obj,
-               map_obj);
+       status = bt_value_copy(map_obj, &map_copy_obj);
        ok(status == BT_VALUE_STATUS_OK && map_copy_obj,
                "bt_value_copy() succeeds");
 
@@ -977,10 +976,7 @@ void test_extend(void)
        status = bt_value_map_insert_real_entry(extension_map,
                "project", -404);
        BT_ASSERT(status == BT_VALUE_STATUS_OK);
-       status = bt_value_map_extend(
-               &extended_map,
-               base_map,
-               extension_map);
+       status = bt_value_map_extend(base_map, extension_map, &extended_map);
        ok(status == BT_VALUE_STATUS_OK &&
                extended_map, "bt_value_map_extend() succeeds");
        ok(bt_value_map_get_size(extended_map) == 5,
This page took 0.023139 seconds and 4 git commands to generate.