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"
@@ -26,6 +27,8 @@ using namespace lldb_private::python;
26
27
using llvm::Expected;
27
28
28
29
class PythonDataObjectsTest : public PythonTestSuite {
30
+ SubsystemRAII<FileSystem> subsystems;
31
+
29
32
public:
30
33
void SetUp () override {
31
34
PythonTestSuite::SetUp ();
@@ -209,8 +212,8 @@ TEST_F(PythonDataObjectsTest, TestPythonBoolean) {
209
212
};
210
213
211
214
// Test PythonBoolean constructed from long integer values.
212
- test_from_long (0 ); // Test 'false' value.
213
- test_from_long (1 ); // Test 'true' value.
215
+ test_from_long (0 ); // Test 'false' value.
216
+ test_from_long (1 ); // Test 'true' value.
214
217
test_from_long (~0 ); // Any value != 0 is 'true'.
215
218
}
216
219
@@ -811,7 +814,8 @@ main = foo
811
814
testing::ContainsRegex (" line 7, in baz" ),
812
815
testing::ContainsRegex (" ZeroDivisionError" )))));
813
816
814
- #if !((defined(_WIN32) || defined(_WIN64)) && (defined(__aarch64__) || defined(_M_ARM64)))
817
+ #if !((defined(_WIN32) || defined(_WIN64)) && \
818
+ (defined (__aarch64__) || defined (_M_ARM64)))
815
819
816
820
static const char script2[] = R"(
817
821
class MyError(Exception):
0 commit comments