Skip to content

[core] fix UUID test#22773

Open
jblomer wants to merge 1 commit into
root-project:masterfrom
jblomer:fix-uuid-test
Open

[core] fix UUID test#22773
jblomer wants to merge 1 commit into
root-project:masterfrom
jblomer:fix-uuid-test

Conversation

@jblomer

@jblomer jblomer commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@jblomer jblomer requested a review from bellenot July 7, 2026 18:37
@jblomer jblomer self-assigned this Jul 7, 2026
@jblomer jblomer requested review from dpiparo and pcanal as code owners July 7, 2026 18:37
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 11h 44m 57s ⏱️
 3 872 tests  3 844 ✅   0 💤 28 ❌
78 787 runs  78 643 ✅ 116 💤 28 ❌

For more details on these failures, see this check.

Results for commit db27e02.

@bellenot bellenot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!


TUUID u;
EXPECT_EQ('1', u.AsString()[14]);
EXPECT_TRUE(u.AsString()[14] == '1' || u.AsString()[14] == '3');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the meaning of this check in general? (both before and after the change)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the position that encodes the UUID version. The "classic" TUUID produces either a version 1 or a version 3 UUID, depending on the platform several other factors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants