[Lldb-commits] [PATCH] D13124: test runner: switch to pure-Python timeout mechanism
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Mon Sep 28 14:25:39 PDT 2015
zturner added inline comments.
================
Comment at: test/test_runner/test/process_control_tests.py:63
@@ +62,3 @@
+ def _suppress_soft_terminate(cls, command):
+ if platform.system() == 'nt':
+ # Add whatever is needed to the command line to
----------------
tfiala wrote:
> zturner wrote:
> > Change `nt` to `Windows` (unless you're removing this logic as discussed earlier)
> Ah okay. I was copying the "nt" from somewhere else in the source code. We might want to grep for that if it is wholesale wrong. I assumed that was leftover from transition over to the NT codebase in W2k time period.
It's really confusing. There's `os.name` and `sys.platform()`, which which return different strings. It's possible the one you saw was checking `os.name`, for which `nt` is one of the valid return values. That's another good candidate for the cross-platform portability module, we could just have lldb_platform.os() which returns an enum. I was a little bummed to see the `process_control` module as a subfolder of `test_runner`, because all of the helper-related stuff could be at a higher level usable by anywhere in the test suite. But we can tackle that later.
http://reviews.llvm.org/D13124
More information about the lldb-commits
mailing list