c-lings / clings

Equivalent of rustlings for C
5 stars 0 forks source link

Imperfect execution system #2

Closed Trevodorax closed 6 months ago

Trevodorax commented 1 year ago

Lacking some cases, and not getting the right output for each kind of failure

TheRealHoko commented 1 year ago

Do you have examples ?

Trevodorax commented 12 months ago

Yup:

TheRealHoko commented 12 months ago

the output of the compiler error is not retrieved by the program the output of the program is not retrieved by the program if I remember well, the execution doesn't care about the exit status (EXIT_FAILURE or EXIT_SUCCESS)

Done

again if my memories are good, when the program crashes (segfault), the exercise is considered as a success (woopsies)

which kata does a segfault ? I'm seeing a run error but it doesn't segfault on my machine (which should imo)

TheRealHoko commented 12 months ago

Also where should the output be saved ? file ? result buffer ?

Trevodorax commented 12 months ago

Great for the Done ones !

The run_error is basically a guaranteed segfault, that's odd...

For the output, it should be stored in the result, which is a buffer yup

ohmushi commented 6 months ago

Close with https://github.com/c-lings/clings/pull/19