| Index: tools/slow_assert.py
|
| diff --git a/tools/slow_assert.py b/tools/slow_assert.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4f541263257c30020873eb17e23d8005a5d95302
|
| --- /dev/null
|
| +++ b/tools/slow_assert.py
|
| @@ -0,0 +1,23 @@
|
| +#!/usr/bin/env python
|
| +# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +# for details. All rights reserved. Use of this source code is governed by a
|
| +# BSD-style license that can be found in the LICENSE file.
|
| +
|
| +import subprocess
|
| +import sys
|
| +
|
| +
|
| +def Main():
|
| + dart = sys.argv[1]
|
| + args = sys.argv[2:]
|
| + if args[0].startswith("--"):
|
| + command = [dart, "--slow-assert"] + args
|
| + else:
|
| + ## We are running a C++ test for the VM.
|
| + command = [dart] + args
|
| + exit_code = subprocess.call(command)
|
| + return exit_code
|
| +
|
| +
|
| +if __name__ == '__main__':
|
| + sys.exit(Main())
|
|
|