diff options
author | Anthony Pesch <inolen@gmail.com> | 2013-08-06 19:47:18 -0700 |
---|---|---|
committer | Anthony Pesch <inolen@gmail.com> | 2013-08-06 19:47:18 -0700 |
commit | a34aed0fb8a553dbd476b1a21eb96fcbf2dab57f (patch) | |
tree | 5f17a71b337e92e3dd70a3bbd0a0244135c885d5 /tests/runner.py | |
parent | f9758d070a44f9ea5b81124a0d25a3e6524c5ed6 (diff) |
enclose noInitialRun in parentheses to make closure happy
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/tests/runner.py b/tests/runner.py index 33e18f2d..b866cc08 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -9161,24 +9161,14 @@ def process(filename): } int main(int argc, char **argv) { - // keep them alive - if (argc == 10) return get_int(); - if (argc == 11) return get_float(); - if (argc == 12) return get_string()[0]; - if (argc == 13) print_int(argv[0][0]); - if (argc == 14) print_float(argv[0][0]); - if (argc == 15) print_string(argv[0]); - if (argc == 16) pointer((int*)argv[0]); - if (argc % 17 == 12) return multi(argc, float(argc)/2, argc+1, argv[0]); - // return 0; - exit(0); + return 0; } ''' post = ''' def process(filename): src = \'\'\' - var Module = { noInitialRun: true }; + var Module = { 'noInitialRun': true }; \'\'\' + open(filename, 'r').read() + \'\'\' Module.addOnExit(function () { Module.print('*'); |