Skip to content

Conversation

aryalaadi
Copy link
Contributor

fixes #7202

Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

@sylvestre
Copy link
Contributor

Some jobs are failing. Could you please also add tests? :)

@aryalaadi
Copy link
Contributor Author

Some jobs are failing. Could you please also add tests? :)

where do I check which passing test has failed? I think I have a good idea why it's failing but I dont know which test it is

@cakebaker
Copy link
Contributor

It looks like all tests pass, though there are two jobs failing in the CI because you didn't run cargo fmt.

@aryalaadi
Copy link
Contributor Author

aryalaadi commented Jan 27, 2025

It looks like all tests pass, though there are two jobs failing in the CI because you didn't run cargo fmt.

Warning: Changes from 'main': PASS -1 / FAIL +1 / ERROR +0 / SKIP +0

I see three failing jobs, and this one says I broke one passing test

@cakebaker
Copy link
Contributor

You can see the reason in an earlier comment from the bot:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

It's a test that unfortunately fails from time to time. It's unrelated to your changes and so you can ignore it :)

fixes uutils#7202 and adds a new test for the fix
@RenjiSann
Copy link
Collaborator

@aryalaadi Can you resolve the conflict ?

Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/stdbuf (passes in this run but fails in the 'main' branch)

Comment on lines +30 to +36
Self::Oct => {
if octal_0 {
3
} else {
2
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually, what about we add a Base::OctZero variant to the Base enum ? It will make the code easier to understand IMO.
Also, we can get rid of the #[repr(u8)], and the = 8/= 16 values ov the Oct and Hex variants.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sounds better, ill look into it

Copy link
Collaborator

Choose a reason for hiding this comment

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

ping @aryalaadi

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry i have been busy, the fix is simple but i dont have access to my workstation rn, if anyone is interested feel free to append to this

@cakebaker
Copy link
Contributor

Closing this PR as its changes have been merged with #7431

@cakebaker cakebaker closed this Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

printf: fails to interpret octal escape sequence with leading 0 in string literal
4 participants