Changeset: aa242234098f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=aa242234098f
Modified Files:
testing/Mtest.py.in
Branch: Dec2011
Log Message:
Mtest: rename core files to an unique name for post analysis
diffs (19 lines):
diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -1856,6 +1856,15 @@ def RunTest(env, TST, BusyPorts, COND, o
t0 = time.time()
tres = DoIt(env, SERVER, CALL, TST, EXT, PRELUDE, TestOutFile,
TestErrFile, STIMEOUT, CTIMEOUT, TIMEOUT, ME, MAPIsockets, length)
+ if tres == 'segfault':
+ # rename core file, if any -- might have to check
+ # /proc/sys/kernel/core_pattern in the future but hopefully
+ # this value is kept sane
+ if os.path.exists('core'):
+ try:
+ os.rename('core', 'core-%s' % (TST))
+ except:
+ pass
t1 = time.time()
TX = t1 - t0
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list