summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Arteaga <andyspiros@gmail.com>2012-09-04 14:08:26 +0200
committerAndrea Arteaga <andyspiros@gmail.com>2012-09-04 14:08:26 +0200
commit09e3468f4377469b66104419235b8e1a24acc063 (patch)
tree93a07040efaa2bc550768c230d85ea80e3c35be1
parentMerge branch 'master' into accuracy (diff)
downloadauto-numerical-bench-09e3468f4377469b66104419235b8e1a24acc063.tar.gz
auto-numerical-bench-09e3468f4377469b66104419235b8e1a24acc063.tar.bz2
auto-numerical-bench-09e3468f4377469b66104419235b8e1a24acc063.zip
Catch accuracy program compilation error.
-rw-r--r--numbench/modules/internal/accuracyBase.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/numbench/modules/internal/accuracyBase.py b/numbench/modules/internal/accuracyBase.py
index 58a1101..a9590dd 100644
--- a/numbench/modules/internal/accuracyBase.py
+++ b/numbench/modules/internal/accuracyBase.py
@@ -163,7 +163,12 @@ def interpretOutput(stdout, logfs, testdir):
def runTest(self, test, implementation):
- exe = compileExe(test, self.libname, implementation)[1]
+ retcode, exe = compileExe(test, self.libname, implementation)
+ if retcode == 0:
+ Print('Compilation succeeded')
+ else:
+ Print('Compilation failed')
+ return None
return runExe(test, implementation, exe, self.tests)[1]
def reportConf(*args):