<div dir="ltr"><div><div><br></div><div>when I use the testcp.sh to test my tcp.c. I got the following errors:</div><div><br></div><div><div><b>1.</b></div><div>===&gt; Checking &#39;/Users/sunny/test/cs631/a.out file file2&#39;...</div><div>Expected failure, but command returned 0:</div><div>  /Users/sunny/test/cs631/a.out file file2<br></div><div><b>2.</b></div><div>===&gt; Comparing &#39;/etc/passwd&#39; to &#39;file&#39;...</div><div>Files &#39;/etc/passwd&#39; and &#39;file&#39; differ.</div></div><div><br></div><div><br></div><div><br></div><div>However, I tried myself </div><div><br></div><div><div><b># /Users/sunny/test/cs631/a.out file file2</b></div><div>Unable to open file: No such file or directory</div><div><b># echo $?</b><br></div><div>1</div></div><div><br></div><div>I am not returning 0 on failure.</div></div><div><br></div><div>I even go to the created tmp folder &quot;/private/var/folders/sx/btkhtrrx01dfrmc1rffyc3rw0000gn/T/cptest.T6WRtU&quot; to run those commands, and find nothing wrong with my program.</div><div><br></div><div>For now, I don&#39;t have a clue. Thanks for your help. or If anyone who have a<b> manual test method</b> please help.</div><div><br></div><div>Best Regards,</div><div><br></div><div>Runxi Ding</div><div><br></div></div>