[Bug 24490] New: Tests should not run expressions that reference platform-specific symbols

Bug ID 24490
Summary Tests should not run expressions that reference platform-specific symbols
Product lldb
Version unspecified
Hardware PC
OS Windows NT
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter zturner@google.com
CC llvm-bugs@lists.llvm.org
Blocks 21766
Classification Unclassified

Examples of tests that do this are:

TestCPPThis.py (calls getpid which is not on Windows)
TestExprs2 (uses the global variable environ, which is not on Windows)
TestConstVariables.py (also calls getpid)

The implementations of these tests should be changed so that they either do not
reference platform specific functions, or the test should detect the platform
and call the appropriate function.