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

doc tests stopped working #14

Closed
joseluis opened this issue Dec 11, 2021 · 3 comments
Closed

doc tests stopped working #14

joseluis opened this issue Dec 11, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@joseluis
Copy link
Collaborator

doc tests worked in the past, but for a while they've been failing.

I've created a minimal example to investigate the issue:

In this example, it hangs in the running 1 test line, until a key is pressed, then it fails continues:

$ cargo test

running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
   Doc-tests issue-test
running 1 test
test src/lib.rs - (line 13) ... FAILED
failures:
---- src/lib.rs - (line 13) stdout ----
Test executable failed (terminated by signal).
failures:
    src/lib.rs - (line 10)
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.71s
error: test failed, to rerun pass '--doc'

Running it with strace (via cargo-with, installable by running cargo install cargo-with ) like this:

$ cargo with "strace -s1000" -- test

produces the following output
strace.txt

@joseluis joseluis added the bug Something isn't working label Dec 11, 2021
@joseluis
Copy link
Collaborator Author

@dankamongmen do you have any idea of what may have changed in notcurses in the last weeks that may have affected this?

@dankamongmen
Copy link
Owner

that strace output suggests everything passed...?

@joseluis
Copy link
Collaborator Author

that strace output suggests everything passed...?

yes, with strace it passes, without strace it does not, and hangs :S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants