aboutsummaryrefslogtreecommitdiff
path: root/environment.py
diff options
context:
space:
mode:
Diffstat (limited to 'environment.py')
-rwxr-xr-xenvironment.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/environment.py b/environment.py
index 786607e..227b5f0 100755
--- a/environment.py
+++ b/environment.py
@@ -61,10 +61,10 @@ class CCompiler():
return ' '.join(self.exelist)
def sanity_check(self, work_dir):
- source_name = os.path.join(work_dir, 'sanitycheck.c')
- binary_name = os.path.join(work_dir, 'sanitycheck')
+ source_name = os.path.join(work_dir, 'sanitycheckc.c')
+ binary_name = os.path.join(work_dir, 'sanitycheckc')
ofile = open(source_name, 'w')
- ofile.write('int main(int argc, char **argv) { return 0; }\n')
+ ofile.write('int main(int argc, char **argv) { int class=0; return class; }\n')
ofile.close()
pc = subprocess.Popen(self.exelist + [source_name, '-o', binary_name])
pc.wait()