11
11
12
12
#include " Plugins/ScriptInterpreter/Python/PythonDataObjects.h"
13
13
#include " Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h"
14
+ #include " TestingSupport/SubsystemRAII.h"
14
15
#include " lldb/Host/File.h"
15
16
#include " lldb/Host/FileSystem.h"
16
17
#include " lldb/Host/HostInfo.h"
@@ -27,6 +28,8 @@ using llvm::Error;
27
28
using llvm::Expected;
28
29
29
30
class PythonDataObjectsTest : public PythonTestSuite {
31
+ SubsystemRAII<FileSystem> subsystems;
32
+
30
33
public:
31
34
void SetUp () override {
32
35
PythonTestSuite::SetUp ();
@@ -210,8 +213,8 @@ TEST_F(PythonDataObjectsTest, TestPythonBoolean) {
210
213
};
211
214
212
215
// Test PythonBoolean constructed from long integer values.
213
- test_from_long (0 ); // Test 'false' value.
214
- test_from_long (1 ); // Test 'true' value.
216
+ test_from_long (0 ); // Test 'false' value.
217
+ test_from_long (1 ); // Test 'true' value.
215
218
test_from_long (~0 ); // Any value != 0 is 'true'.
216
219
}
217
220
@@ -809,7 +812,8 @@ main = foo
809
812
testing::ContainsRegex (" line 7, in baz" ),
810
813
testing::ContainsRegex (" ZeroDivisionError" )))));
811
814
812
- #if !((defined(_WIN32) || defined(_WIN64)) && (defined(__aarch64__) || defined(_M_ARM64)))
815
+ #if !((defined(_WIN32) || defined(_WIN64)) && \
816
+ (defined (__aarch64__) || defined (_M_ARM64)))
813
817
814
818
static const char script2[] = R"(
815
819
class MyError(Exception):
0 commit comments