Skip to content

Commit fa4bf3a

Browse files
authored
[lldb][NFC] Fix test settings JSON check to compare expected path list. (#132410)
Previously, the test compared the JSON output to `setting_value` which was incorrect. Updated the assertion to validate against the correct list of paths `[path1, path2]` to ensure accurate test behavior. Ran the test on the local computer Signed-off-by: Ebuka Ezike <[email protected]>
1 parent f7a32b8 commit fa4bf3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/test/API/commands/settings/TestSettings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ def test_settings_api(self):
10221022
path2 = os.path.join(self.getSourceDir(), "tmp2")
10231023
self.runCmd("settings set %s '%s' '%s'" % (setting_path, path1, path2))
10241024
settings_json = self.get_setting_json(setting_path)
1025-
self.assertEqual(settings_json, setting_value)
1025+
self.assertEqual(settings_json, [path1, path2])
10261026

10271027
# Test OptionValueFormatEntity
10281028
setting_value = """thread #${thread.index}{, name = \\'${thread.name}\\

0 commit comments

Comments
 (0)