UPB-FILS-SdE2 / questions

0 stars 1 forks source link

[rustyshell] stderr #91

Closed mihaicostin34 closed 6 months ago

mihaicostin34 commented 1 year ago

Although I redirect stderr and stdout using the same instructions (modifying only where needed), one passes the tests while the other doesn't. This is what the test result shows image

alexandruradovici commented 1 year ago

You should not write to the output anything, but you seems to output two lines of text.

alexandruradovici commented 1 year ago

Running this in your code

$ ls /inexistent

panics with

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/main.rs:167:77

This might be why the test fails. Please try the commands form the tests locally.