0

When I run check50 on the find program for Pset 3 I get an inconsistent error about output from CLang. Sometimes it works and other times it produces an error on one of the tests. The error can be on any of one of the tests. Also, I found that I needed to change Find.c to switch the return codes for found and not found. Any ideas of what is happening?

I am running check50 2014.fall.pset3.find. Below is a session where I run check50 and get all correct results and then I run it again and an error is produced.

Checking........................................................................:) helpers.c exists
:) helpers.c compiles
:) finds 42 in {42,43,44}
:) finds 42 in {41,42,43}
:) finds 42 in {40,41,42}
:) finds 42 in {41,42,43,44}
:) finds 42 in {40,41,42,43}
:) finds 42 in {39,40,41,42}
:) doesn't find 42 in {39,40,41}
:) doesn't find 42 in {39,40,41,43}
Checking........................................................................:) helpers.c exists
:) helpers.c compiles
:) finds 42 in {42,43,44}
:) finds 42 in {41,42,43}
:) finds 42 in {40,41,42}
:) finds 42 in {41,42,43,44}
:) finds 42 in {40,41,42,43}
:( finds 42 in {39,40,41,42}
   \ expected an exit code of 0, not standard error of "clang: error: unable to execute command..."
:) doesn't find 42 in {39,40,41}
:) doesn't find 42 in {39,40,41,43}
1

According to a conversation yesterday on slack, this is an actual bug with check50. @curiouskiwi has reported it to staff, but it is not known when it will be fixed.

Kiwi's suggestion is this: if you run check50 and it produces a clean run with no errors at any point, then your program is ready to submit. Remember to finish breakout and to submit both together.

Kiwi, feel free to add anything you'd like.

If this answers your question, please accept this answer (or another better answer) to remove your question from the unanswered questions pool. Let's keep up on forum maintenance. ;-)

| improve this answer | |
  • I used check50 with find--everything was green--and then I took a long time to finish breakout. When I looked at my grade, find is not correct at all. When I check it now, it gives me Unexpected end of input as my error – user8136 Aug 23 '15 at 16:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .