# Tests do not match between my machine and automated tests

**URL:** <https://forum.codecrafters.io/t/tests-do-not-match-between-my-machine-and-automated-tests/1353>\
**Category:** Challenges\
**Tags:** challenge:bittorrent\
**Created:** [August 10, 2024, 10:47am UTC](https://forum.codecrafters.io/t/tests-do-not-match-between-my-machine-and-automated-tests/1353 "2024-08-10T10:47:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![maecarva](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/maecarva/32/1237_2.png) [@maecarva](https://forum.codecrafters.io/u/maecarva)\
**Post date:** [August 10, 2024, 10:47am UTC](https://forum.codecrafters.io/t/tests-do-not-match-between-my-machine-and-automated-tests/1353/1 "2024-08-10T10:47:02Z")

</div>

Hello everyone I’m at the “Decode bencoded dictionaries #mn6” step of the “Build your own torrent” in C.  
When I run the same test as the tester on my machine I get the expected result but the tester does not.  
Any idea please ?  
Thanks

 ![test-bittorrent-c](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/3/370e5900b2e334bf88d85ea1cd5fb0a5b97b4fec.png)

---

<div class="post-metadata">

**Author:** ![sarp](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/sarp/32/1082_2.png) [@sarp](https://forum.codecrafters.io/u/sarp)\
**Post date:** [August 10, 2024, 12:28pm UTC](https://forum.codecrafters.io/t/tests-do-not-match-between-my-machine-and-automated-tests/1353/2 "2024-08-10T12:28:33Z")

</div>

Could you be returning an exit code other than 0? Exit code 0 indicates program executed successfully without any errors. Your output seems to match, but not the exit code. This can also happen if your application crashes or throws an error while it’s executing the code.

---

<div class="post-metadata">

**Author:** ![maecarva](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/maecarva/32/1237_2.png) [@maecarva](https://forum.codecrafters.io/u/maecarva)\
**Post date:** [August 10, 2024, 12:35pm UTC](https://forum.codecrafters.io/t/tests-do-not-match-between-my-machine-and-automated-tests/1353/3 "2024-08-10T12:35:21Z")

</div>

I think my program crash on the tester machine but not on mine. I only return 0 or 1 but never -1 so I don’t know.

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [October 4, 2024, 2:27am UTC](https://forum.codecrafters.io/t/tests-do-not-match-between-my-machine-and-automated-tests/1353/5 "2024-10-04T02:27:15Z")

</div>

Closing this thread due to inactivity. If you still need assistance, feel free to start a new discussion!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [October 9, 2024, 2:27am UTC](https://forum.codecrafters.io/t/tests-do-not-match-between-my-machine-and-automated-tests/1353/6 "2024-10-09T02:27:33Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
