Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing the file should-fail-self-hardlink.dump fails with mkcomposefs: Invalid embedded NUL character at position 22 #373

Closed
eriksjolund opened this issue Sep 29, 2024 · 1 comment · Fixed by #374

Comments

@eriksjolund
Copy link
Collaborator

I tried e2afe90

# mkcomposefs --from-file composefs/tests/assets/should-fail-self-hardlink.dump resultfile
mkcomposefs: Invalid embedded NUL character at position 22

I had expected to see some error message starting with mkcomposefs: Self-referential hardlink
because of the filename should-fail-self-hardlink.dump

@cgwalters
Copy link
Contributor

Thanks for trying this out! Fix in #374

However, what would clearly be better here is to enhance the test suite to have a notion of "expected error"...which would be nicer to do if we supported comments in dumpfiles (maybe with an opt-in for new syntax) and then our test suite could embed the expected error like:

# expect: Self-referential hardlink
/ 4096 40555 2 0 0 0 0.0 - - - 
/037blockdev 0 @63340777 2 0 0 0 0.0 /037blockdev - -

or so.

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 a pull request may close this issue.

2 participants