Skip to content

Commit

Permalink
Remove GCC executable return check
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivamSarodia committed May 2, 2017
1 parent 595f87e commit 4bf7a29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def io_test(self, rel_dir, cfile, stdin):
"""Run a general I/O test.
Args:
name (str): Name of this test
rel_dir (str): Directory for the test
cfile (str): The .c file to compile and run
stdin (str): The file to pipe into stdin of the executable, or None
Expand Down Expand Up @@ -191,7 +192,9 @@ def io_test(self, rel_dir, cfile, stdin):
gcc_run = "./gcc_out > {0}/gcc_output".format(dir)

subprocess.run(shivyc_run, shell=True, check=True)
subprocess.run(gcc_run, shell=True, check=True)

# TODO: Why does this return exit code of 10!?
subprocess.run(gcc_run, shell=True)

# Diff the two output files
diff = "diff {0}/gcc_output {0}/shivyc_output".format(dir)
Expand Down

0 comments on commit 4bf7a29

Please sign in to comment.