cs136 / seashell

Seashell is an online environment for editing, running, and submitting C programming assignments.
GNU General Public License v3.0
38 stars 19 forks source link

Display stdout on crashed tests #656

Closed cs136 closed 7 years ago

cs136 commented 7 years ago

Submitter: Tim Brecht THIS IS AN IMPORTANT BUG THAT NEEDS TO BE FIXED.

There is a bug where output being printed in a program is not appearing as output. This seems especially problematic when an assertion is triggered in the program.

I've seen this myself and a student had a particularly nasty time trying to debug A5 because none of the printf's output we visible only the fact that an assertion failed despite the assertion failing after quite a number of prints are called.

fflush(stdout) doesn't solve this problem.

It seems that this might be an issue that occurs when output to the console is captured before being displayed in the Seashell window.