Skip to content

Commit f7e3a19

Browse files
committed
---
yaml --- r: 495 b: refs/heads/master c: c56ecc1 h: refs/heads/master i: 493: 0e702a2 491: 5e6b5da 487: 1a0a6ba 479: 2c703d7 v: v3
1 parent 23d2911 commit f7e3a19

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 18beb7a33db3f3e57f445ba42984b8892e0dfce5
2+
refs/heads/master: c56ecc1d560a51878ffa4648d08110671707ae30

trunk/src/run.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
help="number of repetitions", metavar="NUMBER")
2121
parser.add_option("-q", action="store_true", dest="quiet", default=False,
2222
help="suppresses rust log output")
23+
parser.add_option("-v", action="store_true", dest="valgrind", default=False,
24+
help="runs under valgrind")
2325
parser.add_option("-p", action="store_true", dest="printSource",
2426
default=False, help="prints the test case's source")
2527
parser.add_option("-s", dest="seed", metavar="NUMBER", default=-1,
@@ -72,7 +74,14 @@ def getRustTests(filter):
7274
os.putenv("RUST_SEED", options.seed);
7375
else:
7476
os.putenv("RUST_SEED", str(i));
75-
result = os.system(rustProgram.replace(".rs", ".x86"));
77+
command = rustProgram.replace(".rs", ".x86");
78+
if (options.valgrind):
79+
command = "valgrind --leak-check=full " + \
80+
"--quiet --vex-iropt-level=0 " + \
81+
"--suppressions=etc/x86.supp " + \
82+
command;
83+
print "Running Command: " + command;
84+
result = os.system(command);
7685
exitStatus = result >> 8;
7786
signalNumber = result & 0xF;
7887
if (result == 0):

0 commit comments

Comments
 (0)