tests/lib/test_trace_ir_ref.c: rename user structure
[babeltrace.git] / tests / lib / test_bt_uuid.c
index 3aef05ed8565aea0afc9cd3c9c8cd2072bbd7de6..8a0b610f6a0b74d47984465a12ac88c0083837f2 100644 (file)
@@ -1,20 +1,7 @@
 /*
- * test_bt_uuid.c
+ * SPDX-License-Identifier: GPL-2.0-only
  *
- * Copyright 2019 Michael Jeanson <mjeanson@efficios.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; under version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * Copyright (C) 2019 Michael Jeanson <mjeanson@efficios.com>
  */
 
 #include <stdio.h>
@@ -24,7 +11,7 @@
 
 #include "common/uuid.h"
 
-#define NR_TESTS 21
+#define NR_TESTS 23
 
 static const char valid_str_1[] = "3d260c88-75ea-47b8-a7e2-d6077c0378d9";
 static const char valid_str_2[] = "611cf3a6-a68b-4515-834f-208bc2762592";
@@ -127,6 +114,9 @@ void run_test_bt_uuid_compare(void)
        bt_uuid_from_str(valid_str_2, uuid2);
        ret = bt_uuid_compare(uuid1, uuid2);
        ok(ret != 0, "bt_uuid_compare - Compare different UUID, expect failure");
+       ok(ret < 0, "bt_uuid_compare - Compare different UUID, expect uuid1 smaller");
+       ret = bt_uuid_compare(uuid2, uuid1);
+       ok(ret > 0, "bt_uuid_compare - Compare different UUID, expect uuid2 bigger");
 }
 
 static
This page took 0.025022 seconds and 4 git commands to generate.