Skip to content
Snippets Groups Projects
Commit 0f448469 authored by Timur Safin's avatar Timur Safin Committed by Kirill Yukhin
Browse files

test: make uuid.test tap-compatible

Part of #7618

NO_DOC=internal
NO_CHANGELOG=internal
parent 93ffd153
No related branches found
No related tags found
No related merge requests found
#include "unit.h"
#include "core/random.h"
#include "mp_uuid.h"
#include "msgpuck/msgpuck.h"
......@@ -6,6 +5,9 @@
#include "tt_uuid.h"
#include <string.h>
#define UNIT_TAP_COMPATIBLE 1
#include "unit.h"
static void
uuid_test(struct tt_uuid a, struct tt_uuid b, int expected_result)
{
......
1..4
ok 1 - 6611265b-8852-4832-af8b-4164d52c62eb > 186ebbf7-cf97-4e2e-8b1b-76154f6f3949
ok 2 - 075b4148-8fb0-2e7f-af50-4164d52c62eb < 1fbc929f-5da8-28c5-8b36-76154f6f3949
1..4
ok 1 - mp_sizeof_uuid() == encoded length
ok 2 - mp_decode_uuid() return code
ok 3 - mp_sizeof_uuid() == decoded length
ok 4 - mp_decode_uuid(mp_encode_uuid(uu)) == uu
ok 3 - subtests
1..5
*** mp_print_test ***
ok 1 - correct mp_snprint size with empty buffer
ok 2 - correct mp_snprint size
ok 3 - correct mp_snprint result
ok 4 - correct mp_fprint size
ok 5 - correct mp_fprint result
*** mp_print_test: done ***
ok 4 - subtests
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment