[Lldb-commits] [lldb] [lldb] Make require decorators take a reason (PR #215831)
Charles Zablit via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 16 03:02:07 PDT 2026
https://github.com/charles-zablit updated https://github.com/llvm/llvm-project/pull/215831
>From 79d06f41496aab24fe1dc988066d9604b672f249 Mon Sep 17 00:00:00 2001
From: Charles Zablit <c_zablit at apple.com>
Date: Wed, 12 Aug 2026 16:38:54 +0100
Subject: [PATCH] [lldb] Make require decorators take a reason
---
lldb/docs/resources/test.md | 17 +++-
.../Python/lldbsuite/test/decorators.py | 79 ++++++++++---------
.../Python/lldbsuite/test/lldbgdbclient.py | 2 +-
.../Python/lldbsuite/test/lldbgdbproxy.py | 2 +-
.../Python/lldbsuite/test/skip_reason.py | 16 +++-
.../tools/lldb-server/gdbremote_testcase.py | 2 +-
.../TestMultipleDebuggers.py | 2 +-
.../multiple-targets/TestMultipleTargets.py | 2 +-
.../api/multithreaded/TestMultithreaded.py | 2 +-
.../API/attach/TestWindowsAttachBreakpoint.py | 2 +-
.../add-dsym/uuid/TestAddDsymCommand.py | 2 +-
.../language/TestFrameLanguageCommands.py | 2 +-
.../API/commands/dwim-print/TestDWIMPrint.py | 2 +-
.../dwim-print/objc/TestDWIMPrintObjC.py | 4 +-
.../TestCallUserAnonTypedef.py | 2 +-
.../TestArgumentPassingRestrictions.py | 2 +-
.../TestCallStdStringFunction.py | 2 +-
.../call-function/TestCallStopAndContinue.py | 2 +-
.../TestCallUserDefinedFunction.py | 2 +-
.../call-restarts/TestCallThatRestarts.py | 2 +-
...emplateSpecializationParametersHandling.py | 2 +-
.../context-object/TestContextObject.py | 2 +-
.../expr-with-fork/TestExprWithFork.py | 32 ++++----
.../TestExprInsideLambdas.py | 2 +-
.../expression/formatters/TestFormatters.py | 2 +-
.../array/TestArrayFromStdModule.py | 2 +-
.../basic/TestImportStdModule.py | 4 +-
.../conflicts/TestStdModuleWithConflicts.py | 2 +-
.../deque-basic/TestDequeFromStdModule.py | 2 +-
.../empty-module/TestEmptyStdModule.py | 2 +-
.../TestForwardDeclFromStdModule.py | 2 +-
...tDbgInfoContentForwardListFromStdModule.py | 2 +-
.../TestForwardListFromStdModule.py | 2 +-
.../iterator/TestIteratorFromStdModule.py | 4 +-
.../list/TestListFromStdModule.py | 2 +-
.../TestStdModuleSourcesMissing.py | 2 +-
.../TestStdModuleBuildErrors.py | 2 +-
.../no-std-module/TestMissingStdModule.py | 2 +-
.../TestNonModuleTypeSeparation.py | 2 +-
.../pair/TestPairFromStdModule.py | 2 +-
.../queue/TestQueueFromStdModule.py | 2 +-
.../TestRetryWithStdModule.py | 2 +-
...estSharedPtrDbgInfoContentFromStdModule.py | 2 +-
.../stack/TestStackFromStdModule.py | 2 +-
.../sysroot/TestStdModuleSysroot.py | 2 +-
.../TestVectorBoolFromStdModule.py | 2 +-
.../TestVectorOfVectorsFromStdModule.py | 2 +-
.../vector/TestVectorFromStdModule.py | 2 +-
.../inline-namespace/TestInlineNamespace.py | 2 +-
.../TestInlineNamespaceAlias.py | 2 +-
.../no-deadlock/TestExprDoesntBlock.py | 2 +-
.../TestNestedPersistentTypes.py | 2 +-
.../persistent_types/TestPersistentTypes.py | 2 +-
.../TestPoPersistentResult.py | 6 +-
.../expression/pr35310/TestExprsBug35310.py | 2 +-
.../radar_9531204/TestPrintfAfterUp.py | 2 +-
.../radar_9673664/TestExprHelpExamples.py | 2 +-
.../result_numbering/TestResultNumbering.py | 2 +-
.../API/commands/expression/test/TestExprs.py | 2 +-
.../expression/timeout/TestCallWithTimeout.py | 2 +-
.../unwind_expression/TestUnwindExpression.py | 2 +-
.../weak_symbols/TestWeakSymbols.py | 2 +-
.../expression/xvalue/TestXValuePrinting.py | 2 +-
.../API/commands/frame/var/TestFrameVar.py | 6 +-
.../objc/TestFrameVarDirectIvarObjC.py | 4 +-
.../TestFrameVarDirectIvarObjCPlusPlus.py | 6 +-
.../TestGuiExpandThreadsTree.py | 2 +-
.../gui/spawn-threads/TestGuiSpawnThreads.py | 2 +-
.../commands/platform/sdk/TestPlatformSDK.py | 4 +-
.../process/attach-resume/TestAttachResume.py | 2 +-
.../attach/attach_denied/TestAttachDenied.py | 4 +-
.../detach-resumes/TestDetachResumes.py | 2 +-
.../process/handle/TestProcessHandle.py | 2 +-
.../commands/protocol/TestMCPUnixSocket.py | 4 +-
.../TestZAThreadedDynamic.py | 2 +-
.../TestSVEThreadedDynamic.py | 2 +-
.../commands/statistics/basic/TestStats.py | 6 +-
.../TestAutoInstallMainExecutable.py | 2 +-
.../target/dump-pcm-info/TestDumpPCMInfo.py | 2 +-
.../oso/TestDumpOso.py | 10 +--
.../target/stop-hooks/TestStopHooks.py | 2 +-
.../backtrace/TestThreadBacktraceRepeat.py | 2 +-
.../TestTraceStartStopMultipleThreads.py | 2 +-
.../hello_watchlocation/TestWatchLocation.py | 2 +-
.../TestWatchpointMultipleThreads.py | 2 +-
.../TestWatchLocationWithWatchSet.py | 2 +-
.../API/driver/longpath/TestLongPathDriver.py | 2 +-
.../TestAlwaysRunThreadNames.py | 2 +-
.../archives/TestBSDArchives.py | 6 +-
.../functionalities/asan/TestMemoryHistory.py | 2 +-
.../TestBreakpointCommandAutoContinue.py | 2 +-
.../TestCrashingCondition.py | 2 +-
.../TestBreakOnLambdaCapture.py | 2 +-
.../TestHWBreakMultiThread.py | 2 +-
.../TestJitBreakPoint.py | 2 +-
.../scripted_bkpt/was_hit/TestWasHit.py | 2 +-
.../TestTwoHitsOneActual.py | 2 +-
.../boolreference/TestFormattersBoolRefPtr.py | 2 +-
.../builtin-formats/TestBuiltinFormats.py | 2 +-
.../compactvectors/TestCompactVectors.py | 2 +-
.../TestDataFormatterCpp.py | 2 +-
.../TestDataFormatterObjCNSBundle.py | 2 +-
.../TestDataFormatterObjCNSData.py | 2 +-
.../TestDataFormatterObjCNSError.py | 2 +-
.../TestDataFormatterObjCNSNumber.py | 4 +-
.../TestDataFormatterObjCNSURL.py | 2 +-
.../TestDataFormatterObjNSException.py | 2 +-
.../cmtime/TestDataFormatterCMTime.py | 2 +-
.../TestDataFormatterNSIndexPath.py | 2 +-
.../nsstring/TestDataFormatterNSString.py | 6 +-
.../TestFormattersOneIsSingular.py | 2 +-
.../TestDataFormatterSynthVal.py | 2 +-
.../TestEmbeddedTypeSummary.py | 2 +-
.../nsarraysynth/TestNSArraySynthetic.py | 2 +-
.../TestNSDictionarySynthetic.py | 4 +-
.../nssetsynth/TestNSSetSynthetic.py | 4 +-
.../ostypeformatting/TestFormattersOsType.py | 2 +-
.../poarray/TestPrintObjectArray.py | 4 +-
.../TestSetValueFromCString.py | 2 +-
.../TestSyntheticFilterRecompute.py | 2 +-
.../test/API/functionalities/exec/TestExec.py | 6 +-
.../fat_archives/TestFatArchives.py | 2 +-
.../concurrent_vfork/TestConcurrentVFork.py | 2 +-
.../resumes-child/TestForkResumesChild.py | 2 +-
.../gdb_remote_client/TestPlatformMacOSX.py | 2 +-
.../load_unload/TestLoadUnload.py | 4 +-
.../load_using_paths/TestLoadUsingPaths.py | 2 +-
.../functionalities/longpath/TestLongPath.py | 2 +-
.../memory/find/TestMemoryFind.py | 2 +-
.../module_cache/bsd/TestModuleCacheBSD.py | 2 +-
.../mtc/simple/TestMTCSimple.py | 2 +-
.../os_plugin_in_dsym/TestOSIndSYM.py | 2 +-
.../TestOSPluginStepping.py | 2 +-
.../TestProcessCrashInfo.py | 4 +-
.../process_group/TestChangeProcessGroup.py | 2 +-
.../TestProcessSaveCoreMinidump.py | 2 +-
.../TestProcessSaveCoreMinidump64b.py | 2 +-
.../functionalities/ptr_refs/TestPtrRefs.py | 2 +-
.../rerun_and_expr/TestRerunAndExpr.py | 2 +-
.../TestRerunAndExprDylib.py | 2 +-
.../scripted_process/TestScriptedProcess.py | 4 +-
.../functionalities/signal/TestSendSignal.py | 4 +-
.../signal/handle-abrt/TestHandleAbort.py | 2 +-
.../signal/handle-segv/TestHandleSegv.py | 2 +-
.../functionalities/signal/raise/TestRaise.py | 2 +-
.../TestSingleThreadStepTimeout.py | 2 +-
.../break_after_join/TestBreakAfterJoin.py | 2 +-
...TestConcurrentBatchedBreakpointStepOver.py | 2 +-
...rrentBreakpointDelayBreakpointOneSignal.py | 2 +-
...rentBreakpointOneDelayBreakpointThreads.py | 2 +-
...eakpointsDelayedBreakpointOneWatchpoint.py | 2 +-
.../TestConcurrentCrashWithBreak.py | 2 +-
.../TestConcurrentCrashWithSignal.py | 2 +-
.../TestConcurrentCrashWithWatchpoint.py | 2 +-
...rentCrashWithWatchpointBreakpointSignal.py | 2 +-
.../TestConcurrentDelaySignalBreak.py | 2 +-
.../TestConcurrentDelaySignalWatch.py | 2 +-
.../TestConcurrentDelayWatchBreak.py | 2 +-
...currentDelayedCrashWithBreakpointSignal.py | 2 +-
...entDelayedCrashWithBreakpointWatchpoint.py | 2 +-
.../TestConcurrentManyBreakpoints.py | 2 +-
.../TestConcurrentManyCrash.py | 2 +-
.../TestConcurrentManySignals.py | 2 +-
.../TestConcurrentManyWatchpoints.py | 2 +-
.../TestConcurrentNWatchNBreak.py | 2 +-
.../TestConcurrentSignalBreak.py | 2 +-
.../TestConcurrentSignalDelayBreak.py | 2 +-
.../TestConcurrentSignalDelayWatch.py | 2 +-
.../TestConcurrentSignalNWatchNBreak.py | 2 +-
.../TestConcurrentSignalWatch.py | 2 +-
.../TestConcurrentSignalWatchBreak.py | 2 +-
.../TestConcurrentTwoBreakpointThreads.py | 2 +-
...tConcurrentTwoBreakpointsOneDelaySignal.py | 2 +-
.../TestConcurrentTwoBreakpointsOneSignal.py | 2 +-
...stConcurrentTwoBreakpointsOneWatchpoint.py | 2 +-
.../TestConcurrentTwoWatchpointThreads.py | 2 +-
...stConcurrentTwoWatchpointsOneBreakpoint.py | 2 +-
...currentTwoWatchpointsOneDelayBreakpoint.py | 2 +-
.../TestConcurrentTwoWatchpointsOneSignal.py | 2 +-
.../TestConcurrentWatchBreak.py | 2 +-
.../TestConcurrentWatchBreakDelay.py | 2 +-
...tWatchpointDelayWatchpointOneBreakpoint.py | 2 +-
...entWatchpointWithDelayWatchpointThreads.py | 2 +-
.../exit/TestConcurrentThreadExit.py | 2 +-
.../TestCreateAfterAttach.py | 2 +-
.../TestCreateDuringStep.py | 2 +-
.../exit_during_break/TestExitDuringBreak.py | 2 +-
.../TestExitDuringExpression.py | 2 +-
.../exit_during_step/TestExitDuringStep.py | 2 +-
.../TestIgnoreSuspendedThread.py | 2 +-
.../main_thread_exit/TestMainThreadExit.py | 2 +-
.../multi_break/TestMultipleBreakpoints.py | 2 +-
.../thread/num_threads/TestNumThreads.py | 2 +-
.../TestStateAfterExpression.py | 2 +-
.../thread/step_out/TestThreadStepOut.py | 2 +-
.../thread/thread_exit/TestThreadExit.py | 2 +-
.../TestThreadSpecificBreakpoint.py | 2 +-
.../TestThreadSpecificBpPlusCondition.py | 2 +-
.../type_lookup/TestTypeLookup.py | 2 +-
.../sigint/TestIOHandlerPythonREPLSigint.py | 4 +-
.../sigint/TestProcessIOHandlerInterrupt.py | 2 +-
.../API/lang/c/anonymous/TestAnonymous.py | 2 +-
lldb/test/API/lang/c/blocks/TestBlocks.py | 6 +-
.../TestCCallingConventions.py | 2 +-
.../API/lang/c/enum_types/TestEnumTypes.py | 2 +-
lldb/test/API/lang/c/fpeval/TestFPEval.py | 2 +-
.../full_lto_stepping/TestFullLtoStepping.py | 2 +-
.../c/function_types/TestFunctionTypes.py | 2 +-
.../API/lang/c/libc_calls/TestLibcCalls.py | 4 +-
lldb/test/API/lang/c/modules/TestCModules.py | 2 +-
lldb/test/API/lang/c/sizeof/TestCSizeof.py | 2 +-
.../TestStepOverDoesntBlock.py | 2 +-
lldb/test/API/lang/c/strings/TestCStrings.py | 2 +-
.../lang/c/struct_types/TestStructTypes.py | 4 +-
.../API/lang/c/tls_globals/TestTlsGlobals.py | 2 +-
.../abi_tag_structors/TestAbiTagStructors.py | 12 +--
.../accelerator-table/TestCPPAccelerator.py | 2 +-
lldb/test/API/lang/cpp/auto/TestCPPAuto.py | 2 +-
.../cpp/call-function/TestCallCPPFunction.py | 2 +-
.../cpp/chained-calls/TestCppChainedCalls.py | 2 +-
.../TestClassTemplateParameterPack.py | 2 +-
.../TestConstStaticIntegralMember.py | 2 +-
.../TestConstStaticIntegralMemberInt128.py | 2 +-
.../cpp/constructors/TestCppConstructors.py | 2 +-
.../TestCovariantReturnTypes.py | 2 +-
.../TestDeclFromSubmodule.py | 2 +-
.../TestDefaultTemplateArgs.py | 2 +-
.../lang/cpp/enum-limits/TestCPPEnumLimits.py | 2 +-
.../const_method/TestExprInConstMethod.py | 2 +-
.../TestExprInConstVolatileMethod.py | 2 +-
.../TestExprOnCVQualifiedObjects.py | 2 +-
.../TestExprInNonConstMethod.py | 2 +-
.../TestExprInTemplateConstMethod.py | 2 +-
.../TestExprInTemplateNonConstMethod.py | 2 +-
.../cpp/forward/TestCPPForwardDeclaration.py | 2 +-
.../TestFunctionCallFromObjectFile.py | 2 +-
.../TestCppFunctionQualifiers.py | 2 +-
.../TestCppFunctionRefQualifiers.py | 2 +-
.../TestCppGlobalOperators.py | 2 +-
.../API/lang/cpp/llvm-style/TestLLVMStyle.py | 4 +-
.../modules-import/TestCXXModulesImport.py | 4 +-
.../TestCppMultipleInheritance.py | 2 +-
.../API/lang/cpp/namespace/TestNamespace.py | 4 +-
.../lang/cpp/namespace/TestNamespaceLookup.py | 6 +-
.../TestNamespaceConflicts.py | 4 +-
.../lang/cpp/operators/TestCppOperators.py | 2 +-
.../TestOverloadedFunctions.py | 2 +-
lldb/test/API/lang/cpp/printf/TestPrintf.py | 2 +-
.../rvalue-references/TestRvalueReferences.py | 2 +-
lldb/test/API/lang/cpp/scope/TestCppScope.py | 2 +-
.../static_members/TestCPPStaticMembers.py | 6 +-
.../static_methods/TestCPPStaticMethods.py | 2 +-
lldb/test/API/lang/cpp/symbols/TestSymbols.py | 2 +-
.../TestTemplateDiagnosticHint.py | 2 +-
.../TestTemplateFunctions.py | 2 +-
lldb/test/API/lang/cpp/this/TestCPPThis.py | 2 +-
.../TestThisClassTypeMixing.py | 2 +-
.../API/lang/cpp/typedef/TestCppTypedef.py | 2 +-
.../unicode-literals/TestUnicodeLiterals.py | 2 +-
.../TestCppUnionStaticMembers.py | 2 +-
.../cpp/unique-types4/TestUniqueTypes4.py | 2 +-
.../TestCppVirtualFunctions.py | 2 +-
.../TestObjCIsTypeComplete.py | 2 +-
.../TestObjCClassListFunctionFromUser.py | 2 +-
.../TestCppKeywordsAsObjCIdentifiers.py | 2 +-
.../TestObjCLanguageSpecificData.py | 2 +-
.../TestClangModuleImportLog.py | 2 +-
.../objc-class-method/TestObjCClassMethod.py | 2 +-
.../objc/objc-optimized/TestObjcOptimized.py | 2 +-
.../lang/objc/orderedset/TestOrderedSet.py | 2 +-
.../TestObjCSingleEntryDictionary.py | 4 +-
.../TestTaggedPointerChildren.py | 4 +-
.../TestObjCWarningsInExprParser.py | 2 +-
.../TestObjCppKeywordsEnabled.py | 2 +-
.../TestAArch64LinuxAArch32Compat.py | 2 +-
.../aarch64/fpmr/TestAArch64LinuxFPMR.py | 2 +-
.../linux/aarch64/gcs/TestAArch64LinuxGCS.py | 12 +--
.../TestAArch64LinuxMTEMemoryRegion.py | 2 +-
.../TestAArch64LinuxMTEMemoryTagAccess.py | 10 +--
.../TestAArch64LinuxMTEMemoryTagFaults.py | 4 +-
.../TestAArch64LinuxNonAddressBitCodeBreak.py | 4 +-
...stAArch64LinuxNonAddressBitMemoryAccess.py | 8 +-
.../permission_overlay/TestAArch64LinuxPOE.py | 2 +-
.../TestAArch64LinuxTaggedMemoryAccess.py | 4 +-
.../TestAArch64LinuxTaggedMemoryRegion.py | 2 +-
.../TestAArch64LinuxTLSRegisters.py | 6 +-
.../aarch64/unwind_signal/TestUnwindSignal.py | 2 +-
.../TestTargetSymbolsAddCommand.py | 2 +-
.../tls_register/TestArmLinuxTLSRegister.py | 2 +-
.../i386/tls-address/TestI386TLSAddress.py | 2 +-
.../linux/linker-symbols/TestLinkerSymbols.py | 2 +-
.../TestLoongArch64LinuxSIMDRegisters.py | 4 +-
.../TestMixedDwarfBinary.py | 2 +-
.../TestTargetSymbolsSepDebugSymlink.py | 2 +-
.../TestCreateDuringInstructionStep.py | 4 +-
.../macosx/add-dsym/TestAddDsymDownload.py | 2 +-
.../TestAddDsymMidExecutionCommand.py | 2 +-
.../TestArmPointerMetadataCFADwarfExpr.py | 2 +-
.../TestBSSOnlyDataSectionSliding.py | 2 +-
.../TestCorefileExceptionReason.py | 2 +-
.../TestCorefileUnparseableBinary.py | 2 +-
lldb/test/API/macosx/ctf/TestCTF.py | 4 +-
.../TestDebugServerExitCode.py | 2 +-
.../TestDebugserverMultiMemRead.py | 2 +-
.../TestDelayInitDependency.py | 2 +-
.../API/macosx/deny-attach/TestDenyAttach.py | 2 +-
.../macosx/dsym_codesign/TestdSYMCodesign.py | 2 +-
.../macosx/dsym_modules/TestdSYMModuleInit.py | 2 +-
.../dyld-trie-symbols/TestDyldTrieSymbols.py | 2 +-
.../TestEarlyProcessLaunch.py | 2 +-
.../TestExpeditedStackMemory.py | 8 +-
.../TestExpeditedThreadPCs.py | 2 +-
.../TestExtendedBacktraceAPI.py | 2 +-
.../find-app-in-bundle/TestFindAppInBundle.py | 2 +-
.../TestBundleWithDotInFilename.py | 2 +-
.../find-dsym/deep-bundle/TestDeepBundle.py | 2 +-
.../format/TestFunctionNameWithoutArgs.py | 2 +-
.../function-starts/TestFunctionStarts.py | 4 +-
.../TestIgnoredExceptions.py | 2 +-
.../indirect_symbol/TestIndirectSymbols.py | 2 +-
.../TestMetadataRegisters.py | 2 +-
.../addrable-bits/TestAddrableBitsCorefile.py | 2 +-
.../TestFirmwareCorefiles.py | 6 +-
.../kern-ver-str/TestKernVerStrLCNOTE.py | 2 +-
.../TestMultipleBinaryCorefile.py | 6 +-
.../API/macosx/macCatalyst/TestMacCatalyst.py | 2 +-
.../TestMacCatalystAppWithMacOSFramework.py | 2 +-
.../TestNoNlistsDylib.py | 2 +-
.../API/macosx/nslog/TestDarwinNSLogOutput.py | 4 +-
.../TestObjCRecognizer.py | 4 +-
lldb/test/API/macosx/order/TestOrderFile.py | 2 +-
.../TestLaunchProcessPosixSpawn.py | 4 +-
.../TestDetachVrsProfile.py | 2 +-
lldb/test/API/macosx/queues/TestQueues.py | 6 +-
.../safe-to-func-call/TestSafeFuncCalls.py | 2 +-
.../macosx/save_crashlog/TestSaveCrashlog.py | 2 +-
.../TestSharedCacheHostMemory.py | 2 +-
.../TestSharedCacheVMRange.py | 2 +-
.../macosx/simulator/TestSimulatorPlatform.py | 4 +-
.../skinny-corefile/TestSkinnyCorefile.py | 2 +-
.../sme-registers/TestSMERegistersDarwin.py | 2 +-
.../stack-corefile/TestStackCorefile.py | 2 +-
.../TestMachExceptionData.py | 2 +-
.../API/macosx/tbi-honored/TestTBIHonored.py | 2 +-
.../thread-names/TestInterruptThreadNames.py | 2 +-
.../TestBreakpointsThreadInit.py | 4 +-
.../TestInternalThreadSuspension.py | 2 +-
.../API/macosx/universal/TestUniversal.py | 6 +-
.../API/macosx/universal64/TestUniversal64.py | 4 +-
.../TestUnregisteredMacho.py | 2 +-
.../class_members/TestSBTypeClassMembers.py | 2 +-
.../TestExprPathSynthetic.py | 2 +-
.../lldbutil/iter/TestLLDBIterator.py | 2 +-
.../lldbutil/iter/TestRegistersIterator.py | 2 +-
.../API/python_api/signals/TestSignalsAPI.py | 2 +-
.../TestTargetArchFromModule.py | 2 +-
.../watchlocation/TestSetWatchlocation.py | 2 +-
.../watchlocation/TestTargetWatchAddress.py | 2 +-
lldb/test/API/qemu/TestQemuLaunch.py | 2 +-
.../attach/TestDAP_attachByPortNum.py | 2 +-
.../lldb-dap/exception/TestDAP_exception.py | 2 +-
.../exception/objc/TestDAP_exception_objc.py | 4 +-
.../TestDAP_extendedStackTrace.py | 4 +-
.../launch/TestDAP_launch_termination.py | 2 +-
.../launch/TestDAP_launch_win_debug_heap.py | 2 +-
.../longpath/TestDAP_launch_longPath.py | 2 +-
.../tools/lldb-dap/memory/TestDAP_memory.py | 4 +-
.../tools/lldb-dap/module/TestDAP_module.py | 2 +-
.../lldb-dap/save-core/TestDAP_save_core.py | 2 +-
.../tools/lldb-dap/server/TestDAP_server.py | 4 +-
.../stopped-events/TestDAP_stopped_events.py | 2 +-
.../tools/lldb-dap/threads/TestDAP_threads.py | 2 +-
.../lldb-dap/variables/TestDAP_variables.py | 4 +-
.../lldb-server/TestGdbRemoteHostInfo.py | 2 +-
.../TestGdbRemoteThreadsInStopReply.py | 2 +-
.../tools/lldb-server/TestLldbGdbServer.py | 2 +-
.../test/API/tools/lldb-server/TestNonStop.py | 2 +-
.../TestCachedMemoryRegionInfo.py | 2 +-
.../lldb-server/commandline/TestStubSetSID.py | 6 +-
.../inferior-crash/TestGdbRemoteAbort.py | 2 +-
.../inferior-crash/TestGdbRemoteSegFault.py | 2 +-
.../TestGdbRemote_QPassSignals.py | 2 +-
.../vCont-threads/TestPartialResume.py | 2 +-
.../lldb-server/vCont-threads/TestSignal.py | 18 ++---
lldb/test/API/types/TestCharType.py | 4 +-
lldb/test/API/types/TestCharTypeExpr.py | 4 +-
lldb/test/API/types/TestDoubleTypes.py | 2 +-
lldb/test/API/types/TestDoubleTypesExpr.py | 2 +-
lldb/test/API/types/TestFloatTypes.py | 2 +-
lldb/test/API/types/TestFloatTypesExpr.py | 2 +-
lldb/test/API/types/TestIntegerType.py | 4 +-
lldb/test/API/types/TestIntegerTypeExpr.py | 6 +-
lldb/test/API/types/TestLongTypes.py | 8 +-
lldb/test/API/types/TestLongTypesExpr.py | 8 +-
lldb/test/API/types/TestShortType.py | 4 +-
lldb/test/API/types/TestShortTypeExpr.py | 4 +-
lldb/test/API/windows/conpty/TestConPTY.py | 8 +-
.../debug-heap/TestWindowsDebugHeap.py | 2 +-
.../launch/missing-dll/TestMissingDll.py | 2 +-
.../launch/replace-dll/TestReplaceDLL.py | 2 +-
.../windows/msvcrt/TestMSVCRTCException.py | 2 +-
.../test/API/windows/thread/TestThreadName.py | 2 +-
402 files changed, 611 insertions(+), 573 deletions(-)
diff --git a/lldb/docs/resources/test.md b/lldb/docs/resources/test.md
index 5aaefc077e7d1..a5ea533bc5233 100644
--- a/lldb/docs/resources/test.md
+++ b/lldb/docs/resources/test.md
@@ -152,7 +152,7 @@ decorator you pick says which:
keeps them visible as work still to be done.
```python
- at requireDarwin # inherently Darwin-only: reported UNSUPPORTED elsewhere
+ at requireDarwin() # inherently Darwin-only: reported UNSUPPORTED elsewhere
@skipIfWindows # ought to work on Windows, currently broken: reported SKIPPED
```
@@ -162,11 +162,24 @@ The `require*` decorators mirror the `skip*` ones one-for-one:
`requireNotWasm`, `requireDarwinHost`, `requireClang`, and the general
`requirePlatform(oslist)` / `requireNotPlatform(oslist)`.
+All of them take a reason saying what about the test ties it to the platform,
+which is printed next to the requirement when the test is reported
+UNSUPPORTED. It is optional on the positive decorators, whose name already
+carries most of the story, and required on the negative ones, because
+"unsupported on windows" on its own says nothing about the test. Either way
+they are always called with parentheses:
+
+```python
+ at requireDarwin("parses a Mach-O debug map")
+ at requireNotWindows("calls fork()")
+ at requireDarwin() # also fine: the requirement alone is the whole story
+```
+
Reach for `require*` when the test is tied to a platform-specific file format,
API, or OS feature, or to a specific compiler. If the test is merely untested
or broken somewhere, keep `skipIf*` so nobody mistakes a bug for a design
decision. For example, a test that only uses Clang-specific debug info
-options belongs behind `@requireClang` rather than
+options belongs behind `@requireClang()` rather than
`@skipIf(compiler=no_match("clang"))`.
In addition to providing a lot more flexibility when it comes to writing the
diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py
index 4cad3500b7d83..08eb4042db540 100644
--- a/lldb/packages/Python/lldbsuite/test/decorators.py
+++ b/lldb/packages/Python/lldbsuite/test/decorators.py
@@ -1152,10 +1152,20 @@ def skipUnlessPlatform(oslist):
# an OS feature that simply doesn't exist elsewhere. If the test is merely
# untested or broken somewhere, keep using skipIf / skipUnless so it stays
# visible as work to be done.
+#
+# Every one of them is called with parentheses, and takes a `reason` explaining
+# what about the test ties it to the platform; it is printed alongside the
+# requirement when the test is reported UNSUPPORTED. The reason is optional on
+# the positive decorators, whose name already carries most of the story, and
+# required on the negative ones, where "unsupported on windows" on its own says
+# nothing about the test.
+#
+# @requireDarwin()
+# @requireDarwin("parses a Mach-O debug map")
##############################################################################
-def requirePlatform(oslist):
+def requirePlatform(oslist, reason: Optional[str] = None):
"""Mark the item as runnable only on the listed target platforms.
Unlike `skipUnlessPlatform`, other platforms are reported as UNSUPPORTED
@@ -1163,7 +1173,7 @@ def requirePlatform(oslist):
"""
return unittest.skipUnless(
lldbplatformutil.getPlatform() in oslist,
- UnsupportedReason("requires one of %s" % (", ".join(oslist))),
+ UnsupportedReason("requires one of %s" % (", ".join(oslist)), reason),
)
@@ -1173,23 +1183,16 @@ def requireNotPlatform(oslist: list, reason: Optional[str] = None):
Unlike `skipIfPlatform`, the listed platforms are reported as UNSUPPORTED
rather than SKIPPED.
"""
- assert isinstance(
- reason, (str, type(None))
- ), f"expects 'str' or 'None' got {type(reason).__name__!r}"
-
- skip_reason = f"unsupported on {', '.join(oslist)}"
- if reason:
- skip_reason += f": {reason}"
-
return unittest.skipIf(
- lldbplatformutil.getPlatform() in oslist, UnsupportedReason(skip_reason)
+ lldbplatformutil.getPlatform() in oslist,
+ UnsupportedReason(f"unsupported on {', '.join(oslist)}", reason),
)
-def requireDarwin(func):
+def requireDarwin(reason: Optional[str] = None):
"""Mark the item as inherently Darwin-only (Mach-O, debug maps, Darwin
kernel/runtime APIs, ...). Non-Darwin targets report UNSUPPORTED."""
- return requirePlatform(lldbplatform.translate(lldbplatform.darwin_all))(func)
+ return requirePlatform(lldbplatform.translate(lldbplatform.darwin_all), reason)
def requireNotDarwin(reason: str):
@@ -1199,10 +1202,10 @@ def requireNotDarwin(reason: str):
)
-def requireLinux(func):
+def requireLinux(reason: Optional[str] = None):
"""Mark the item as inherently Linux-only (procfs, Linux-specific syscalls,
...). Other targets report UNSUPPORTED."""
- return requirePlatform(["linux"])(func)
+ return requirePlatform(["linux"], reason)
def requireNotLinux(reason: str):
@@ -1210,10 +1213,10 @@ def requireNotLinux(reason: str):
return requireNotPlatform(["linux"], reason=reason)
-def requireWindows(func):
+def requireWindows(reason: Optional[str] = None):
"""Mark the item as inherently Windows-only (PE/COFF, Win32 APIs, ...).
Other targets report UNSUPPORTED."""
- return requirePlatform(["windows"])(func)
+ return requirePlatform(["windows"], reason)
def requireNotWindows(reason: str):
@@ -1225,31 +1228,33 @@ def requireNotWindows(reason: str):
return requireNotPlatform(["windows"], reason=reason)
-def requirePOSIX(func):
+def requirePOSIX(reason: Optional[str] = None):
"""Mark the item as requiring a POSIX target.
A shorthand for `requireNotWindows` that reads better on tests whose
dependency is POSIX semantics generally rather than anything about
Windows specifically.
"""
- return requireNotPlatform(["windows"], reason="uses the posix API.")(func)
+ return requireNotPlatform(["windows"], reason=reason or "uses the posix API")
-def requireMacOS(func):
+def requireMacOS(reason: Optional[str] = None):
"""Mark the item as inherently macOS-only, as opposed to other Darwin
platforms (iOS, tvOS, watchOS, ...).
"""
- return requirePlatform(["macosx"])(func)
+ return requirePlatform(["macosx"], reason)
-def requireSignals(func):
+def requireSignals(reason: Optional[str] = None):
"""Mark the item as requiring POSIX signal support on the target."""
- return requireNotPlatform(["windows", "wasip1", "wasi"])(func)
+ return requireNotPlatform(
+ ["windows", "wasip1", "wasi"], reason=reason or "requires POSIX signals"
+ )
-def requireExpressionEvaluation(func):
+def requireExpressionEvaluation(reason: Optional[str] = None):
"""Mark the item as requiring expression evaluation."""
- return requireNotWasm(reason="needs expression evaluation support")(func)
+ return requireNotWasm(reason=reason or "needs expression evaluation support")
def requireNotWasm(reason: str):
@@ -1262,32 +1267,32 @@ def requireNotWasm(reason: str):
return requireNotPlatform(["wasip1", "wasi"], reason=reason)
-def requireHostPlatform(oslist):
+def requireHostPlatform(oslist, reason: Optional[str] = None):
"""Mark the item as runnable only on the listed *host* platforms."""
return unittest.skipUnless(
lldbplatformutil.getHostPlatform() in oslist,
- UnsupportedReason("requires one of %s as host" % (", ".join(oslist))),
+ UnsupportedReason("requires one of %s as host" % (", ".join(oslist)), reason),
)
-def requireDarwinHost(func):
+def requireDarwinHost(reason: Optional[str] = None):
"""Mark the item as requiring a Darwin host, regardless of target.
Use for tests that drive host-side Darwin facilities: `xcrun`, the
simulator runtimes, dsymutil, the LLDB.framework layout, and so on.
"""
- return requireHostPlatform(lldbplatform.translate(lldbplatform.darwin_all))(func)
+ return requireHostPlatform(lldbplatform.translate(lldbplatform.darwin_all), reason)
-def requireThreadSupport(func):
+def requireThreadSupport(reason: Optional[str] = None):
"""Mark the item as requiring thread support (e.g. pthreads) on the target."""
platform = lldbplatformutil.getPlatform()
return unittest.skipIf(
# WASI targets ending in "-threads" (e.g. wasip1-threads) support threads;
# other WASI targets (e.g. wasip1, wasip2) do not.
platform.startswith("wasi") and not platform.endswith("threads"),
- UnsupportedReason(f"threads are not supported on {platform}"),
- )(func)
+ UnsupportedReason(f"threads are not supported on {platform}", reason),
+ )
@lru_cache(maxsize=None)
@@ -1307,19 +1312,19 @@ def _socketPermissionError() -> Optional[str]:
return None
-def requireSocketPermission(func):
+def requireSocketPermission(reason: Optional[str] = None):
"""Mark the item as requiring permission to open a listening socket."""
error = _socketPermissionError()
- return unittest.skipIf(error is not None, UnsupportedReason(error or ""))(func)
+ return unittest.skipIf(error is not None, UnsupportedReason(error or "", reason))
-def requireClang(func):
+def requireClang(reason: Optional[str] = None):
"""Mark the item as inherently Clang-only (Clang-specific debug info,
diagnostics, or command-line flags)."""
compiler = os.path.basename(lldbplatformutil.getCompiler())
return unittest.skipUnless(
- compiler.startswith("clang"), UnsupportedReason("requires clang")
- )(func)
+ compiler.startswith("clang"), UnsupportedReason("requires clang", reason)
+ )
def skipIfTargetDoesNotSupportSharedLibraries():
diff --git a/lldb/packages/Python/lldbsuite/test/lldbgdbclient.py b/lldb/packages/Python/lldbsuite/test/lldbgdbclient.py
index b8f78a0cff5d6..6051d895848e4 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbgdbclient.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbgdbclient.py
@@ -6,7 +6,7 @@
from lldbsuite.test.gdbclientutils import *
- at requireSocketPermission # setUp binds a listening socket for the mock server
+ at requireSocketPermission("setUp binds a listening socket for the mock server")
class GDBRemoteTestBase(TestBase):
"""
Base class for GDB client tests.
diff --git a/lldb/packages/Python/lldbsuite/test/lldbgdbproxy.py b/lldb/packages/Python/lldbsuite/test/lldbgdbproxy.py
index 2456dbcad03f6..f7802ae94b0fb 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbgdbproxy.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbgdbproxy.py
@@ -11,7 +11,7 @@
from lldbsuite.support import seven
- at requireSocketPermission # setUp binds a listening socket for the proxy server
+ at requireSocketPermission("setUp binds a listening socket for the proxy server")
class GDBProxyTestBase(TestBase):
"""
Base class for gdbserver proxy tests.
diff --git a/lldb/packages/Python/lldbsuite/test/skip_reason.py b/lldb/packages/Python/lldbsuite/test/skip_reason.py
index a237633c81514..e8cd069d891bf 100644
--- a/lldb/packages/Python/lldbsuite/test/skip_reason.py
+++ b/lldb/packages/Python/lldbsuite/test/skip_reason.py
@@ -9,7 +9,21 @@
class UnsupportedReason(str):
"""A skip reason meaning "this test can never run here", not "this test is
- broken here". Reported as UNSUPPORTED rather than SKIPPED."""
+ broken here". Reported as UNSUPPORTED rather than SKIPPED.
+
+ *message* says what the decorator requires ("requires one of darwin").
+ *reason* is the optional test-specific explanation the decorator was handed
+ ("uses Darwin APIs"); it is appended to *message* so both end up in the
+ test report.
+ """
+
+ def __new__(cls, message, reason=None):
+ assert isinstance(
+ reason, (str, type(None))
+ ), f"expects 'str' or 'None' got {type(reason).__name__!r}"
+ if reason:
+ message = f"{message}: {reason}"
+ return super().__new__(cls, message)
def is_unsupported(test, reason):
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
index b88fced342218..42b54ce97aed8 100644
--- a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
+++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
@@ -57,7 +57,7 @@ def test_method(self, attrvalue=attrvalue):
@skipIfWasm # wasm uses runtime's GDB stub, not lldb-server
- at requireSocketPermission # the tests talk to the debug monitor over a socket
+ at requireSocketPermission("the tests talk to the debug monitor over a socket")
class GdbRemoteTestCaseBase(Base, metaclass=GdbRemoteTestCaseFactory):
# Default time out in seconds. The timeout is increased tenfold under Asan.
DEFAULT_TIMEOUT = 20 * (10 if ("ASAN_OPTIONS" in os.environ) else 1)
diff --git a/lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py b/lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py
index 13c2f5d961a78..3239038ab5765 100644
--- a/lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py
+++ b/lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class TestMultipleSimultaneousDebuggers(TestBase):
SHARED_BUILD_TESTCASE = False
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/api/multiple-targets/TestMultipleTargets.py b/lldb/test/API/api/multiple-targets/TestMultipleTargets.py
index e04aec66bece0..0a0bdb6cc4c98 100644
--- a/lldb/test/API/api/multiple-targets/TestMultipleTargets.py
+++ b/lldb/test/API/api/multiple-targets/TestMultipleTargets.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class TestMultipleTargets(TestBase):
SHARED_BUILD_TESTCASE = False
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/api/multithreaded/TestMultithreaded.py b/lldb/test/API/api/multithreaded/TestMultithreaded.py
index 3a3467936a349..906fbc39b3eb0 100644
--- a/lldb/test/API/api/multithreaded/TestMultithreaded.py
+++ b/lldb/test/API/api/multithreaded/TestMultithreaded.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfNoSBHeaders
class SBBreakpointCallbackCase(TestBase):
SHARED_BUILD_TESTCASE = False
diff --git a/lldb/test/API/attach/TestWindowsAttachBreakpoint.py b/lldb/test/API/attach/TestWindowsAttachBreakpoint.py
index 83bc28e5f40c0..21db818fc15d3 100644
--- a/lldb/test/API/attach/TestWindowsAttachBreakpoint.py
+++ b/lldb/test/API/attach/TestWindowsAttachBreakpoint.py
@@ -98,7 +98,7 @@ class PROCESS_INFORMATION(ctypes.Structure):
process_information.hThread,
)
- @requireWindows
+ @requireWindows()
def test_attach_ignores_loader_breakpoint(self):
"""
lldb must not report the loader's int3 (raised in a system module while
diff --git a/lldb/test/API/commands/add-dsym/uuid/TestAddDsymCommand.py b/lldb/test/API/commands/add-dsym/uuid/TestAddDsymCommand.py
index f9490e40298a2..715929a962e3a 100644
--- a/lldb/test/API/commands/add-dsym/uuid/TestAddDsymCommand.py
+++ b/lldb/test/API/commands/add-dsym/uuid/TestAddDsymCommand.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireDarwin
+ at requireDarwin()
class AddDsymCommandCase(TestBase):
SHARED_BUILD_TESTCASE = False
diff --git a/lldb/test/API/commands/command/language/TestFrameLanguageCommands.py b/lldb/test/API/commands/command/language/TestFrameLanguageCommands.py
index f8e6c17ae34d7..3b12b564d979e 100644
--- a/lldb/test/API/commands/command/language/TestFrameLanguageCommands.py
+++ b/lldb/test/API/commands/command/language/TestFrameLanguageCommands.py
@@ -5,7 +5,7 @@
class TestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
def test(self):
self.build()
_, _, thread, _ = lldbutil.run_to_source_breakpoint(
diff --git a/lldb/test/API/commands/dwim-print/TestDWIMPrint.py b/lldb/test/API/commands/dwim-print/TestDWIMPrint.py
index d50c707f33de9..22b01394cf015 100644
--- a/lldb/test/API/commands/dwim-print/TestDWIMPrint.py
+++ b/lldb/test/API/commands/dwim-print/TestDWIMPrint.py
@@ -9,7 +9,7 @@
import lldbsuite.test.lldbutil as lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
def _run_cmd(self, cmd: str) -> str:
"""Run the given lldb command and return its output."""
diff --git a/lldb/test/API/commands/dwim-print/objc/TestDWIMPrintObjC.py b/lldb/test/API/commands/dwim-print/objc/TestDWIMPrintObjC.py
index a25a192527293..5548e0401cf91 100644
--- a/lldb/test/API/commands/dwim-print/objc/TestDWIMPrintObjC.py
+++ b/lldb/test/API/commands/dwim-print/objc/TestDWIMPrintObjC.py
@@ -9,7 +9,7 @@
class TestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
def test(self):
self.build()
lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.m"))
@@ -18,7 +18,7 @@ def test(self):
"dwim-print parent.child", patterns=[r'_name = 0x[0-9a-f]+ @"Seven"']
)
- @requireDarwin
+ @requireDarwin()
def test_with_summary(self):
self.build()
lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.m"))
diff --git a/lldb/test/API/commands/expression/anonymous-struct/TestCallUserAnonTypedef.py b/lldb/test/API/commands/expression/anonymous-struct/TestCallUserAnonTypedef.py
index 76735fe62d5cd..69b99b9642823 100644
--- a/lldb/test/API/commands/expression/anonymous-struct/TestCallUserAnonTypedef.py
+++ b/lldb/test/API/commands/expression/anonymous-struct/TestCallUserAnonTypedef.py
@@ -13,7 +13,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestExprLookupAnonStructTypedef(TestBase):
def test(self):
"""Test typedeffed untagged struct arguments for function call expressions"""
diff --git a/lldb/test/API/commands/expression/argument_passing_restrictions/TestArgumentPassingRestrictions.py b/lldb/test/API/commands/expression/argument_passing_restrictions/TestArgumentPassingRestrictions.py
index 55bccb4f84e7a..d9425e0ac9969 100644
--- a/lldb/test/API/commands/expression/argument_passing_restrictions/TestArgumentPassingRestrictions.py
+++ b/lldb/test/API/commands/expression/argument_passing_restrictions/TestArgumentPassingRestrictions.py
@@ -15,7 +15,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestArgumentPassingRestrictions(TestBase):
@skipIf(compiler="clang", compiler_version=["<", "7.0"])
def test_argument_passing_restrictions(self):
diff --git a/lldb/test/API/commands/expression/call-function/TestCallStdStringFunction.py b/lldb/test/API/commands/expression/call-function/TestCallStdStringFunction.py
index 174306ec8e66a..464a32917a4d4 100644
--- a/lldb/test/API/commands/expression/call-function/TestCallStdStringFunction.py
+++ b/lldb/test/API/commands/expression/call-function/TestCallStdStringFunction.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class ExprCommandCallFunctionTestCase(TestBase):
@expectedFailureAll(
compiler="icc", bugnumber="llvm.org/pr14437, fails with ICC 13.1"
diff --git a/lldb/test/API/commands/expression/call-function/TestCallStopAndContinue.py b/lldb/test/API/commands/expression/call-function/TestCallStopAndContinue.py
index 0034c4d948799..374fb6428bb4c 100644
--- a/lldb/test/API/commands/expression/call-function/TestCallStopAndContinue.py
+++ b/lldb/test/API/commands/expression/call-function/TestCallStopAndContinue.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class ExprCommandCallStopContinueTestCase(TestBase):
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/API/commands/expression/call-function/TestCallUserDefinedFunction.py b/lldb/test/API/commands/expression/call-function/TestCallUserDefinedFunction.py
index 0172c120065e9..3503ef093b015 100644
--- a/lldb/test/API/commands/expression/call-function/TestCallUserDefinedFunction.py
+++ b/lldb/test/API/commands/expression/call-function/TestCallUserDefinedFunction.py
@@ -13,7 +13,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class ExprCommandCallUserDefinedFunction(TestBase):
def test(self):
"""Test return values of user defined function calls."""
diff --git a/lldb/test/API/commands/expression/call-restarts/TestCallThatRestarts.py b/lldb/test/API/commands/expression/call-restarts/TestCallThatRestarts.py
index 0b62acc4e78c1..527899f7569fc 100644
--- a/lldb/test/API/commands/expression/call-restarts/TestCallThatRestarts.py
+++ b/lldb/test/API/commands/expression/call-restarts/TestCallThatRestarts.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireSignals
+ at requireSignals()
class ExprCommandThatRestartsTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/commands/expression/class_template_specialization_empty_pack/TestClassTemplateSpecializationParametersHandling.py b/lldb/test/API/commands/expression/class_template_specialization_empty_pack/TestClassTemplateSpecializationParametersHandling.py
index 05e1744b15a49..cd3ba201e2d57 100644
--- a/lldb/test/API/commands/expression/class_template_specialization_empty_pack/TestClassTemplateSpecializationParametersHandling.py
+++ b/lldb/test/API/commands/expression/class_template_specialization_empty_pack/TestClassTemplateSpecializationParametersHandling.py
@@ -11,7 +11,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestClassTemplateSpecializationParametersHandling(TestBase):
def test_class_template_specialization(self):
self.build()
diff --git a/lldb/test/API/commands/expression/context-object/TestContextObject.py b/lldb/test/API/commands/expression/context-object/TestContextObject.py
index ebbb42418ae19..5d03075b90d9f 100644
--- a/lldb/test/API/commands/expression/context-object/TestContextObject.py
+++ b/lldb/test/API/commands/expression/context-object/TestContextObject.py
@@ -8,7 +8,7 @@
from lldbsuite.test.lldbtest import *
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class ContextObjectTestCase(TestBase):
def test_context_object(self):
"""Tests expression evaluation in context of an object."""
diff --git a/lldb/test/API/commands/expression/expr-with-fork/TestExprWithFork.py b/lldb/test/API/commands/expression/expr-with-fork/TestExprWithFork.py
index 411132370eb45..80f357ea52366 100644
--- a/lldb/test/API/commands/expression/expr-with-fork/TestExprWithFork.py
+++ b/lldb/test/API/commands/expression/expr-with-fork/TestExprWithFork.py
@@ -18,7 +18,7 @@ class ExprWithForkTestCase(TestBase):
# --- Basic expression evaluation across fork/vfork ---
- @requirePOSIX
+ @requirePOSIX()
@add_test_categories(["fork"])
def test_expr_with_fork(self):
"""Test that expression evaluation succeeds when the expression calls fork()."""
@@ -31,7 +31,7 @@ def test_expr_with_fork(self):
"fork_and_return(42, false)", result_type="int", result_value="42"
)
- @requirePOSIX
+ @requirePOSIX()
@add_test_categories(["fork"])
def test_expr_with_vfork(self):
"""Test that expression evaluation succeeds when the expression calls vfork()."""
@@ -44,7 +44,7 @@ def test_expr_with_vfork(self):
"fork_and_return(42, true)", result_type="int", result_value="42"
)
- @requirePOSIX
+ @requirePOSIX()
@add_test_categories(["fork"])
def test_expr_with_fork_trap(self):
"""Test that expression evaluation handles a child process that triggers a SIGTRAP."""
@@ -66,7 +66,7 @@ def test_expr_with_fork_trap(self):
# --- follow-fork-mode child override during expression evaluation ---
- @requirePOSIX
+ @requirePOSIX()
@add_test_categories(["fork"])
def test_expr_with_fork_follow_child(self):
"""Test that expression evaluation succeeds with follow-fork-mode child."""
@@ -87,7 +87,7 @@ def test_expr_with_fork_follow_child(self):
# Verify we are still debugging the original process.
self.assertEqual(process.GetProcessID(), original_pid)
- @requirePOSIX
+ @requirePOSIX()
@add_test_categories(["fork"])
def test_expr_with_vfork_follow_child(self):
"""Test that expression evaluation succeeds with vfork and follow-fork-mode child."""
@@ -107,7 +107,7 @@ def test_expr_with_vfork_follow_child(self):
# --- stop-on-fork: fork interrupts expression immediately ---
- @requirePOSIX
+ @requirePOSIX()
@add_test_categories(["fork"])
def test_expr_with_fork_stop_on_fork(self):
"""Test that stop-on-fork interrupts expression evaluation on fork."""
@@ -126,7 +126,7 @@ def test_expr_with_fork_stop_on_fork(self):
# The expression should be interrupted due to the fork.
self.assertTrue(value.GetError().Fail())
- @requirePOSIX
+ @requirePOSIX()
@add_test_categories(["fork"])
def test_expr_with_fork_stop_on_fork_process_state(self):
"""Test that process state is valid after stop-on-fork interrupts on fork."""
@@ -150,7 +150,7 @@ def test_expr_with_fork_stop_on_fork_process_state(self):
# --- stop-on-fork with vfork: deferred to vforkdone ---
- @requirePOSIX
+ @requirePOSIX()
@add_test_categories(["fork"])
def test_expr_with_vfork_stop_on_fork(self):
"""Test that stop-on-fork with vfork defers to vforkdone and interrupts."""
@@ -170,7 +170,7 @@ def test_expr_with_vfork_stop_on_fork(self):
# vfork) because stop-on-fork is set.
self.assertTrue(value.GetError().Fail())
- @requirePOSIX
+ @requirePOSIX()
@add_test_categories(["fork"])
def test_expr_with_vfork_stop_on_fork_process_state(self):
"""Test that process state is clean after vfork stop-on-fork interruption.
@@ -196,7 +196,7 @@ def test_expr_with_vfork_stop_on_fork_process_state(self):
self.assertEqual(process.GetProcessID(), original_pid)
self.assertEqual(process.GetState(), lldb.eStateStopped)
- @requirePOSIX
+ @requirePOSIX()
@add_test_categories(["fork"])
def test_expr_with_vfork_stop_on_fork_breakpoints_work(self):
"""Test that breakpoints are functional after vfork stop-on-fork.
@@ -226,7 +226,7 @@ def test_expr_with_vfork_stop_on_fork_breakpoints_work(self):
# --- stop-on-fork=false (default): no interruption ---
- @requirePOSIX
+ @requirePOSIX()
@add_test_categories(["fork"])
def test_expr_with_fork_stop_on_fork_false(self):
"""Test that stop-on-fork=false allows fork expression to complete."""
@@ -246,7 +246,7 @@ def test_expr_with_fork_stop_on_fork_false(self):
self.assertSuccess(value.GetError())
self.assertEqual(value.GetValueAsSigned(), 42)
- @requirePOSIX
+ @requirePOSIX()
@add_test_categories(["fork"])
def test_expr_with_vfork_stop_on_fork_false(self):
"""Test that stop-on-fork=false allows vfork expression to complete."""
@@ -285,7 +285,7 @@ def test_stop_on_fork_set_get(self):
# --- stop-on-fork with follow-fork-mode child ---
- @requirePOSIX
+ @requirePOSIX()
@add_test_categories(["fork"])
def test_expr_with_fork_stop_on_fork_follow_child(self):
"""Test stop-on-fork + follow-child: expression interrupted, still on parent."""
@@ -309,7 +309,7 @@ def test_expr_with_fork_stop_on_fork_follow_child(self):
self.assertTrue(value.GetError().Fail())
self.assertEqual(process.GetProcessID(), original_pid)
- @requirePOSIX
+ @requirePOSIX()
@add_test_categories(["fork"])
def test_expr_with_vfork_stop_on_fork_follow_child(self):
"""Test stop-on-fork + vfork + follow-child: interrupted at vforkdone, still on parent."""
@@ -335,7 +335,7 @@ def test_expr_with_vfork_stop_on_fork_follow_child(self):
# --- concurrent fork on another thread during expression ---
- @requirePOSIX
+ @requirePOSIX()
@add_test_categories(["fork"])
def test_expr_concurrent_fork_other_thread(self):
"""Test that a fork on another thread during expression is handled correctly.
@@ -373,7 +373,7 @@ def test_expr_concurrent_fork_other_thread(self):
# Breakpoints should still be functional.
self.expect_expr("x", result_type="int", result_value="42")
- @requirePOSIX
+ @requirePOSIX()
@add_test_categories(["fork"])
def test_expr_concurrent_fork_other_thread_follow_child(self):
"""Test that follow-fork-mode child is overridden during expression evaluation.
diff --git a/lldb/test/API/commands/expression/expr_inside_lambda/TestExprInsideLambdas.py b/lldb/test/API/commands/expression/expr_inside_lambda/TestExprInsideLambdas.py
index 01451c32b0a33..ac2821bcf3446 100644
--- a/lldb/test/API/commands/expression/expr_inside_lambda/TestExprInsideLambdas.py
+++ b/lldb/test/API/commands/expression/expr_inside_lambda/TestExprInsideLambdas.py
@@ -10,7 +10,7 @@
from lldbsuite.test.lldbtest import *
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class ExprInsideLambdaTestCase(TestBase):
TEST_WITH_PDB_DEBUG_INFO = True
SHARED_BUILD_TESTCASE = False
diff --git a/lldb/test/API/commands/expression/formatters/TestFormatters.py b/lldb/test/API/commands/expression/formatters/TestFormatters.py
index fa48027bb64bf..3ea9d400f7a1a 100644
--- a/lldb/test/API/commands/expression/formatters/TestFormatters.py
+++ b/lldb/test/API/commands/expression/formatters/TestFormatters.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class ExprFormattersTestCase(TestBase):
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/API/commands/expression/import-std-module/array/TestArrayFromStdModule.py b/lldb/test/API/commands/expression/import-std-module/array/TestArrayFromStdModule.py
index edf204a80d48d..1ac5651157643 100644
--- a/lldb/test/API/commands/expression/import-std-module/array/TestArrayFromStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/array/TestArrayFromStdModule.py
@@ -9,7 +9,7 @@
class TestCase(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIf(macos_version=["<", "15.0"])
@skipIf(
bugnumber="ASTImport of lambdas not supported: https://github.com/llvm/llvm-project/issues/149477"
diff --git a/lldb/test/API/commands/expression/import-std-module/basic/TestImportStdModule.py b/lldb/test/API/commands/expression/import-std-module/basic/TestImportStdModule.py
index d385707869505..c008cf0ea9670 100644
--- a/lldb/test/API/commands/expression/import-std-module/basic/TestImportStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/basic/TestImportStdModule.py
@@ -9,7 +9,7 @@
class ImportStdModule(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIf(macos_version=["<", "15.0"])
@skipIf(macos_sdk_version=["<", "16.0"])
def test(self):
@@ -39,7 +39,7 @@ def test(self):
)
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIf(macos_version=["<", "15.0"])
@skipIf(macos_sdk_version=["<", "16.0"])
def test_non_cpp_language(self):
diff --git a/lldb/test/API/commands/expression/import-std-module/conflicts/TestStdModuleWithConflicts.py b/lldb/test/API/commands/expression/import-std-module/conflicts/TestStdModuleWithConflicts.py
index 00bd376b0ee28..da64fd2864bf9 100644
--- a/lldb/test/API/commands/expression/import-std-module/conflicts/TestStdModuleWithConflicts.py
+++ b/lldb/test/API/commands/expression/import-std-module/conflicts/TestStdModuleWithConflicts.py
@@ -14,7 +14,7 @@
class TestImportStdModuleConflicts(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIf(macos_version=["<", "15.0"])
@skipIf(macos_sdk_version=["<", "16.0"])
def test(self):
diff --git a/lldb/test/API/commands/expression/import-std-module/deque-basic/TestDequeFromStdModule.py b/lldb/test/API/commands/expression/import-std-module/deque-basic/TestDequeFromStdModule.py
index 14231d4003b0e..4e1d10785a341 100644
--- a/lldb/test/API/commands/expression/import-std-module/deque-basic/TestDequeFromStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/deque-basic/TestDequeFromStdModule.py
@@ -9,7 +9,7 @@
class TestBasicDeque(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIf(macos_version=["<", "15.0"])
@skipIf(
bugnumber="ASTImport of lambdas not supported: https://github.com/llvm/llvm-project/issues/149477"
diff --git a/lldb/test/API/commands/expression/import-std-module/empty-module/TestEmptyStdModule.py b/lldb/test/API/commands/expression/import-std-module/empty-module/TestEmptyStdModule.py
index 3eed88213829e..587c63984ceb5 100644
--- a/lldb/test/API/commands/expression/import-std-module/empty-module/TestEmptyStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/empty-module/TestEmptyStdModule.py
@@ -14,7 +14,7 @@ class ImportStdModule(TestBase):
# test configurations where libc++ is actually supposed to be tested.
@add_test_categories(["libc++"])
@skipIfRemote
- @requireClang
+ @requireClang()
@skipIf(macos_sdk_version=["<", "16.0"])
def test(self):
self.build()
diff --git a/lldb/test/API/commands/expression/import-std-module/forward_decl_from_module/TestForwardDeclFromStdModule.py b/lldb/test/API/commands/expression/import-std-module/forward_decl_from_module/TestForwardDeclFromStdModule.py
index a80e8fdde7038..d61c711232399 100644
--- a/lldb/test/API/commands/expression/import-std-module/forward_decl_from_module/TestForwardDeclFromStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/forward_decl_from_module/TestForwardDeclFromStdModule.py
@@ -14,7 +14,7 @@ class TestCase(TestBase):
# test configurations where libc++ is actually supposed to be tested.
@add_test_categories(["libc++"])
@skipIfRemote
- @requireClang
+ @requireClang()
@skipIf(macos_sdk_version=["<", "16.0"])
def test(self):
self.build()
diff --git a/lldb/test/API/commands/expression/import-std-module/forward_list-dbg-info-content/TestDbgInfoContentForwardListFromStdModule.py b/lldb/test/API/commands/expression/import-std-module/forward_list-dbg-info-content/TestDbgInfoContentForwardListFromStdModule.py
index cdf8953aa1bbc..fe45f133cd2f2 100644
--- a/lldb/test/API/commands/expression/import-std-module/forward_list-dbg-info-content/TestDbgInfoContentForwardListFromStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/forward_list-dbg-info-content/TestDbgInfoContentForwardListFromStdModule.py
@@ -9,7 +9,7 @@
class TestDbgInfoContentForwardList(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIf(macos_version=["<", "15.0"])
@skipIf(macos_sdk_version=["<", "16.0"])
def test(self):
diff --git a/lldb/test/API/commands/expression/import-std-module/forward_list/TestForwardListFromStdModule.py b/lldb/test/API/commands/expression/import-std-module/forward_list/TestForwardListFromStdModule.py
index 5c42d5c9b3cc8..8534545cbcbc7 100644
--- a/lldb/test/API/commands/expression/import-std-module/forward_list/TestForwardListFromStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/forward_list/TestForwardListFromStdModule.py
@@ -9,7 +9,7 @@
class TestBasicForwardList(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIf(macos_version=["<", "15.0"])
@skipIf(
bugnumber="ASTImport of lambdas not supported: https://github.com/llvm/llvm-project/issues/149477"
diff --git a/lldb/test/API/commands/expression/import-std-module/iterator/TestIteratorFromStdModule.py b/lldb/test/API/commands/expression/import-std-module/iterator/TestIteratorFromStdModule.py
index 9dfc90c99a0e8..9958fe3f2240b 100644
--- a/lldb/test/API/commands/expression/import-std-module/iterator/TestIteratorFromStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/iterator/TestIteratorFromStdModule.py
@@ -9,7 +9,7 @@
class TestCase(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIf(macos_version=["<", "15.0"])
@skipIf(macos_sdk_version=["<", "16.0"])
def test(self):
@@ -29,7 +29,7 @@ def test(self):
self.expect_expr("move_begin + 3 == move_end", result_value="true")
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@expectedFailureAll(bugnumber="https://github.com/llvm/llvm-project/issues/149477")
@skipIf(macos_sdk_version=["<", "16.0"])
def test_xfail(self):
diff --git a/lldb/test/API/commands/expression/import-std-module/list/TestListFromStdModule.py b/lldb/test/API/commands/expression/import-std-module/list/TestListFromStdModule.py
index 14b887c1242b9..e11e0258818fb 100644
--- a/lldb/test/API/commands/expression/import-std-module/list/TestListFromStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/list/TestListFromStdModule.py
@@ -9,7 +9,7 @@
class TestBasicList(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIf(macos_version=["<", "15.0"])
@skipIf(
bugnumber="ASTImport of lambdas not supported: https://github.com/llvm/llvm-project/issues/149477"
diff --git a/lldb/test/API/commands/expression/import-std-module/missing-module-sources/TestStdModuleSourcesMissing.py b/lldb/test/API/commands/expression/import-std-module/missing-module-sources/TestStdModuleSourcesMissing.py
index b107ce393d211..9c1db7da57786 100644
--- a/lldb/test/API/commands/expression/import-std-module/missing-module-sources/TestStdModuleSourcesMissing.py
+++ b/lldb/test/API/commands/expression/import-std-module/missing-module-sources/TestStdModuleSourcesMissing.py
@@ -14,7 +14,7 @@ class TestCase(TestBase):
# but we still add the libc++ category so that this test is only run in
# test configurations where libc++ is actually supposed to be tested.
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIfRemote
@skipIf(macos_sdk_version=["<", "16.0"])
def test(self):
diff --git a/lldb/test/API/commands/expression/import-std-module/module-build-errors/TestStdModuleBuildErrors.py b/lldb/test/API/commands/expression/import-std-module/module-build-errors/TestStdModuleBuildErrors.py
index ab56ffed720be..bc8ffc3ed881c 100644
--- a/lldb/test/API/commands/expression/import-std-module/module-build-errors/TestStdModuleBuildErrors.py
+++ b/lldb/test/API/commands/expression/import-std-module/module-build-errors/TestStdModuleBuildErrors.py
@@ -18,7 +18,7 @@ class TestCase(TestBase):
# test configurations where libc++ is actually supposed to be tested.
@add_test_categories(["libc++"])
@skipIfRemote
- @requireClang
+ @requireClang()
@skipIf(macos_sdk_version=["<", "16.0"])
def test(self):
self.build()
diff --git a/lldb/test/API/commands/expression/import-std-module/no-std-module/TestMissingStdModule.py b/lldb/test/API/commands/expression/import-std-module/no-std-module/TestMissingStdModule.py
index 9e079b48d568f..7e6145eedba4d 100644
--- a/lldb/test/API/commands/expression/import-std-module/no-std-module/TestMissingStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/no-std-module/TestMissingStdModule.py
@@ -15,7 +15,7 @@
class STLTestCase(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIf(macos_sdk_version=["<", "16.0"])
def test(self):
self.build()
diff --git a/lldb/test/API/commands/expression/import-std-module/non-module-type-separation/TestNonModuleTypeSeparation.py b/lldb/test/API/commands/expression/import-std-module/non-module-type-separation/TestNonModuleTypeSeparation.py
index c88eec2c0e554..f46492d28c79f 100644
--- a/lldb/test/API/commands/expression/import-std-module/non-module-type-separation/TestNonModuleTypeSeparation.py
+++ b/lldb/test/API/commands/expression/import-std-module/non-module-type-separation/TestNonModuleTypeSeparation.py
@@ -10,7 +10,7 @@
class TestCase(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIf(macos_version=["<", "15.0"])
@skipIf(macos_sdk_version=["<", "16.0"])
def test(self):
diff --git a/lldb/test/API/commands/expression/import-std-module/pair/TestPairFromStdModule.py b/lldb/test/API/commands/expression/import-std-module/pair/TestPairFromStdModule.py
index 1a5625d04a003..48435466cdc83 100644
--- a/lldb/test/API/commands/expression/import-std-module/pair/TestPairFromStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/pair/TestPairFromStdModule.py
@@ -9,7 +9,7 @@
class TestCase(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
# FIXME: This regressed in 69d5a6662115499198ebfa07a081e98a6ce4b915
# but needs further investigation for what underlying Clang/LLDB bug can't
# handle that code change.
diff --git a/lldb/test/API/commands/expression/import-std-module/queue/TestQueueFromStdModule.py b/lldb/test/API/commands/expression/import-std-module/queue/TestQueueFromStdModule.py
index c07d67e121535..0a9a4ec215d4f 100644
--- a/lldb/test/API/commands/expression/import-std-module/queue/TestQueueFromStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/queue/TestQueueFromStdModule.py
@@ -9,7 +9,7 @@
class TestQueue(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIf(
compiler="clang",
compiler_version=[">", "16.0"],
diff --git a/lldb/test/API/commands/expression/import-std-module/retry-with-std-module/TestRetryWithStdModule.py b/lldb/test/API/commands/expression/import-std-module/retry-with-std-module/TestRetryWithStdModule.py
index deeb3bb4a8d27..424c051fb2ca3 100644
--- a/lldb/test/API/commands/expression/import-std-module/retry-with-std-module/TestRetryWithStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/retry-with-std-module/TestRetryWithStdModule.py
@@ -5,7 +5,7 @@
class TestCase(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIf(macos_version=["<", "15.0"])
@skipIf(macos_sdk_version=["<", "16.0"])
def test(self):
diff --git a/lldb/test/API/commands/expression/import-std-module/shared_ptr-dbg-info-content/TestSharedPtrDbgInfoContentFromStdModule.py b/lldb/test/API/commands/expression/import-std-module/shared_ptr-dbg-info-content/TestSharedPtrDbgInfoContentFromStdModule.py
index 3a0b1c74e2d04..df27af637ac4e 100644
--- a/lldb/test/API/commands/expression/import-std-module/shared_ptr-dbg-info-content/TestSharedPtrDbgInfoContentFromStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/shared_ptr-dbg-info-content/TestSharedPtrDbgInfoContentFromStdModule.py
@@ -9,7 +9,7 @@
class TestSharedPtrDbgInfoContent(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIf(macos_version=["<", "15.0"])
@skipIf(macos_sdk_version=["<", "16.0"])
def test(self):
diff --git a/lldb/test/API/commands/expression/import-std-module/stack/TestStackFromStdModule.py b/lldb/test/API/commands/expression/import-std-module/stack/TestStackFromStdModule.py
index 2beb1650d5731..0e53b77dfc296 100644
--- a/lldb/test/API/commands/expression/import-std-module/stack/TestStackFromStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/stack/TestStackFromStdModule.py
@@ -9,7 +9,7 @@
class TestStack(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIfLinux # Declaration in some Linux headers causes LLDB to crash.
@skipIf(bugnumber="rdar://97622854")
@skipIf(macos_sdk_version=["<", "16.0"])
diff --git a/lldb/test/API/commands/expression/import-std-module/sysroot/TestStdModuleSysroot.py b/lldb/test/API/commands/expression/import-std-module/sysroot/TestStdModuleSysroot.py
index 6a17a07d046a1..13a26c825c8e0 100644
--- a/lldb/test/API/commands/expression/import-std-module/sysroot/TestStdModuleSysroot.py
+++ b/lldb/test/API/commands/expression/import-std-module/sysroot/TestStdModuleSysroot.py
@@ -13,7 +13,7 @@ class ImportStdModule(TestBase):
# but we still add the libc++ category so that this test is only run in
# test configurations where libc++ is actually supposed to be tested.
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIfRemote # This test messes with the platform, can't be run remotely.
@skipIf(macos_sdk_version=["<", "16.0"])
def test(self):
diff --git a/lldb/test/API/commands/expression/import-std-module/vector-bool/TestVectorBoolFromStdModule.py b/lldb/test/API/commands/expression/import-std-module/vector-bool/TestVectorBoolFromStdModule.py
index de3b314924291..7e8fe4dbcf9b6 100644
--- a/lldb/test/API/commands/expression/import-std-module/vector-bool/TestVectorBoolFromStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/vector-bool/TestVectorBoolFromStdModule.py
@@ -9,7 +9,7 @@
class TestBoolVector(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIf(bugnumber="rdar://100741983")
@skipIf(macos_sdk_version=["<", "16.0"])
def test(self):
diff --git a/lldb/test/API/commands/expression/import-std-module/vector-of-vectors/TestVectorOfVectorsFromStdModule.py b/lldb/test/API/commands/expression/import-std-module/vector-of-vectors/TestVectorOfVectorsFromStdModule.py
index e8fc31b85a8b9..53e850b68f027 100644
--- a/lldb/test/API/commands/expression/import-std-module/vector-of-vectors/TestVectorOfVectorsFromStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/vector-of-vectors/TestVectorOfVectorsFromStdModule.py
@@ -9,7 +9,7 @@
class TestVectorOfVectors(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIf(macos_version=["<", "15.0"])
@skipIf(
bugnumber="ASTImport of lambdas not supported: https://github.com/llvm/llvm-project/issues/149477"
diff --git a/lldb/test/API/commands/expression/import-std-module/vector/TestVectorFromStdModule.py b/lldb/test/API/commands/expression/import-std-module/vector/TestVectorFromStdModule.py
index 544a0be531f6b..f36ed355096ad 100644
--- a/lldb/test/API/commands/expression/import-std-module/vector/TestVectorFromStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/vector/TestVectorFromStdModule.py
@@ -9,7 +9,7 @@
class TestBasicVector(TestBase):
@add_test_categories(["libc++"])
- @requireClang
+ @requireClang()
@skipIf(bugnumber="rdar://100741983")
@skipIf(macos_sdk_version=["<", "16.0"])
def test(self):
diff --git a/lldb/test/API/commands/expression/inline-namespace/TestInlineNamespace.py b/lldb/test/API/commands/expression/inline-namespace/TestInlineNamespace.py
index c13eb13072849..0a7c8fea24ef4 100644
--- a/lldb/test/API/commands/expression/inline-namespace/TestInlineNamespace.py
+++ b/lldb/test/API/commands/expression/inline-namespace/TestInlineNamespace.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestInlineNamespace(TestBase):
def test(self):
self.build()
diff --git a/lldb/test/API/commands/expression/namespace-alias/TestInlineNamespaceAlias.py b/lldb/test/API/commands/expression/namespace-alias/TestInlineNamespaceAlias.py
index cb876997e6480..3562b1543e988 100644
--- a/lldb/test/API/commands/expression/namespace-alias/TestInlineNamespaceAlias.py
+++ b/lldb/test/API/commands/expression/namespace-alias/TestInlineNamespaceAlias.py
@@ -11,7 +11,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestInlineNamespace(TestBase):
@skipIf(compiler="clang", compiler_version=["<", "16.0"])
def test(self):
diff --git a/lldb/test/API/commands/expression/no-deadlock/TestExprDoesntBlock.py b/lldb/test/API/commands/expression/no-deadlock/TestExprDoesntBlock.py
index aae82c72d986a..5f162f49e26b7 100644
--- a/lldb/test/API/commands/expression/no-deadlock/TestExprDoesntBlock.py
+++ b/lldb/test/API/commands/expression/no-deadlock/TestExprDoesntBlock.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class ExprDoesntDeadlockTestCase(TestBase):
@add_test_categories(["basic_process"])
def test_with_run_command(self):
diff --git a/lldb/test/API/commands/expression/persistent_types/TestNestedPersistentTypes.py b/lldb/test/API/commands/expression/persistent_types/TestNestedPersistentTypes.py
index 0c81d202f053f..f108bf8884e63 100644
--- a/lldb/test/API/commands/expression/persistent_types/TestNestedPersistentTypes.py
+++ b/lldb/test/API/commands/expression/persistent_types/TestNestedPersistentTypes.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class NestedPersistentTypesTestCase(TestBase):
def test_persistent_types(self):
"""Test that nested persistent types work."""
diff --git a/lldb/test/API/commands/expression/persistent_types/TestPersistentTypes.py b/lldb/test/API/commands/expression/persistent_types/TestPersistentTypes.py
index 473937ab6e412..7f55503f3ed95 100644
--- a/lldb/test/API/commands/expression/persistent_types/TestPersistentTypes.py
+++ b/lldb/test/API/commands/expression/persistent_types/TestPersistentTypes.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class PersistenttypesTestCase(TestBase):
def test_persistent_types(self):
"""Test that lldb persistent types works correctly."""
diff --git a/lldb/test/API/commands/expression/po_persistent_result/TestPoPersistentResult.py b/lldb/test/API/commands/expression/po_persistent_result/TestPoPersistentResult.py
index 8f4bba421579d..8ecacd5abb9fb 100644
--- a/lldb/test/API/commands/expression/po_persistent_result/TestPoPersistentResult.py
+++ b/lldb/test/API/commands/expression/po_persistent_result/TestPoPersistentResult.py
@@ -14,12 +14,12 @@ def setUp(self):
self.build()
lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.m"))
- @requireDarwin
+ @requireDarwin()
def test_po_does_not_print_persistent_result(self):
"""Test `po` doesn't advertise a persistent result variable."""
self.expect("po obj", matching=False, substrs=["$0 = "])
- @requireDarwin
+ @requireDarwin()
def test_po_does_not_keep_persistent_result(self):
"""Test `po` doesn't leak a persistent result variable."""
self.expect("po obj")
@@ -28,7 +28,7 @@ def test_po_does_not_keep_persistent_result(self):
self.expect("expression $0", error=True)
self.expect("expression obj", substrs=["$0 = "])
- @requireDarwin
+ @requireDarwin()
def test_expression_description_verbosity(self):
"""Test printing object description _and_ opt-in to persistent results."""
self.expect("expression -O -vfull -- obj", substrs=["$0 = "])
diff --git a/lldb/test/API/commands/expression/pr35310/TestExprsBug35310.py b/lldb/test/API/commands/expression/pr35310/TestExprsBug35310.py
index 7c0c73ad1fd1c..f1eb84e3fae4a 100644
--- a/lldb/test/API/commands/expression/pr35310/TestExprsBug35310.py
+++ b/lldb/test/API/commands/expression/pr35310/TestExprsBug35310.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class ExprBug35310(TestBase):
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/API/commands/expression/radar_9531204/TestPrintfAfterUp.py b/lldb/test/API/commands/expression/radar_9531204/TestPrintfAfterUp.py
index f869e4736e01b..b93810c32dd1f 100644
--- a/lldb/test/API/commands/expression/radar_9531204/TestPrintfAfterUp.py
+++ b/lldb/test/API/commands/expression/radar_9531204/TestPrintfAfterUp.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class Radar9531204TestCase(TestBase):
# rdar://problem/9531204
def test_expr_commands(self):
diff --git a/lldb/test/API/commands/expression/radar_9673664/TestExprHelpExamples.py b/lldb/test/API/commands/expression/radar_9673664/TestExprHelpExamples.py
index ada647b59eaf7..bd1c00b078b4e 100644
--- a/lldb/test/API/commands/expression/radar_9673664/TestExprHelpExamples.py
+++ b/lldb/test/API/commands/expression/radar_9673664/TestExprHelpExamples.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class Radar9673644TestCase(TestBase):
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/API/commands/expression/result_numbering/TestResultNumbering.py b/lldb/test/API/commands/expression/result_numbering/TestResultNumbering.py
index 11f6d74e0ad0b..a7ae09c52fc49 100644
--- a/lldb/test/API/commands/expression/result_numbering/TestResultNumbering.py
+++ b/lldb/test/API/commands/expression/result_numbering/TestResultNumbering.py
@@ -10,7 +10,7 @@
from lldbsuite.test.lldbtest import *
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestExpressionResultNumbering(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/commands/expression/test/TestExprs.py b/lldb/test/API/commands/expression/test/TestExprs.py
index 65e1e7b9b3e2a..b432c1482d4f2 100644
--- a/lldb/test/API/commands/expression/test/TestExprs.py
+++ b/lldb/test/API/commands/expression/test/TestExprs.py
@@ -19,7 +19,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class BasicExprCommandsTestCase(TestBase):
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/API/commands/expression/timeout/TestCallWithTimeout.py b/lldb/test/API/commands/expression/timeout/TestCallWithTimeout.py
index 877a421e67bf1..86471deabfc60 100644
--- a/lldb/test/API/commands/expression/timeout/TestCallWithTimeout.py
+++ b/lldb/test/API/commands/expression/timeout/TestCallWithTimeout.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class ExprCommandWithTimeoutsTestCase(TestBase):
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/API/commands/expression/unwind_expression/TestUnwindExpression.py b/lldb/test/API/commands/expression/unwind_expression/TestUnwindExpression.py
index 05c3e33499737..35254048f2cec 100644
--- a/lldb/test/API/commands/expression/unwind_expression/TestUnwindExpression.py
+++ b/lldb/test/API/commands/expression/unwind_expression/TestUnwindExpression.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class UnwindFromExpressionTest(TestBase):
main_spec = lldb.SBFileSpec("main.cpp", False)
diff --git a/lldb/test/API/commands/expression/weak_symbols/TestWeakSymbols.py b/lldb/test/API/commands/expression/weak_symbols/TestWeakSymbols.py
index ce6d8064ae45e..267c87cdb569b 100644
--- a/lldb/test/API/commands/expression/weak_symbols/TestWeakSymbols.py
+++ b/lldb/test/API/commands/expression/weak_symbols/TestWeakSymbols.py
@@ -15,7 +15,7 @@ class TestWeakSymbolsInExpressions(TestBase):
SHARED_BUILD_TESTCASE = False
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
@skipIf(compiler="clang", compiler_version=["<", "19.0"])
def test_weak_symbol_in_expr(self):
"""Tests that we can refer to weak symbols in expressions."""
diff --git a/lldb/test/API/commands/expression/xvalue/TestXValuePrinting.py b/lldb/test/API/commands/expression/xvalue/TestXValuePrinting.py
index 3541e9eccccc3..555ab31fe3754 100644
--- a/lldb/test/API/commands/expression/xvalue/TestXValuePrinting.py
+++ b/lldb/test/API/commands/expression/xvalue/TestXValuePrinting.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class ExprXValuePrintingTestCase(TestBase):
def test(self):
"""Printing an xvalue should work."""
diff --git a/lldb/test/API/commands/frame/var/TestFrameVar.py b/lldb/test/API/commands/frame/var/TestFrameVar.py
index f45159b5b2eaa..65dc6641bf428 100644
--- a/lldb/test/API/commands/frame/var/TestFrameVar.py
+++ b/lldb/test/API/commands/frame/var/TestFrameVar.py
@@ -112,7 +112,7 @@ def check_frame_variable_errors(self, thread, error_strings):
self.assertIn(s, message)
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_darwin_dwarf_missing_obj(self):
"""
Test that if we build a binary with DWARF in .o files and we remove
@@ -136,7 +136,7 @@ def test_darwin_dwarf_missing_obj(self):
self.check_frame_variable_errors(thread, error_strings)
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_darwin_dwarf_obj_mod_time_mismatch(self):
"""
Test that if we build a binary with DWARF in .o files and we update
@@ -170,7 +170,7 @@ def test_darwin_dwarf_obj_mod_time_mismatch(self):
@skipIfRemote
@skipIfWindows # Windows can't set breakpoints by name 'main' in this case.
- @requireClang
+ @requireClang()
def test_gline_tables_only(self):
"""
Test that if we build a binary with "-gline-tables-only" that we can
diff --git a/lldb/test/API/commands/frame/var/direct-ivar/objc/TestFrameVarDirectIvarObjC.py b/lldb/test/API/commands/frame/var/direct-ivar/objc/TestFrameVarDirectIvarObjC.py
index a6dc7cbf777e3..563b2d27bcfac 100644
--- a/lldb/test/API/commands/frame/var/direct-ivar/objc/TestFrameVarDirectIvarObjC.py
+++ b/lldb/test/API/commands/frame/var/direct-ivar/objc/TestFrameVarDirectIvarObjC.py
@@ -5,7 +5,7 @@
class TestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
def test_objc_self(self):
self.build()
lldbutil.run_to_source_breakpoint(
@@ -13,7 +13,7 @@ def test_objc_self(self):
)
self.expect("frame variable _ivar", startstr="(int) _ivar = 30")
- @requireDarwin
+ @requireDarwin()
def test_objc_self_capture_idiom(self):
self.build()
lldbutil.run_to_source_breakpoint(
diff --git a/lldb/test/API/commands/frame/var/direct-ivar/objcpp/TestFrameVarDirectIvarObjCPlusPlus.py b/lldb/test/API/commands/frame/var/direct-ivar/objcpp/TestFrameVarDirectIvarObjCPlusPlus.py
index efc95144fba8e..492eca29a47b1 100644
--- a/lldb/test/API/commands/frame/var/direct-ivar/objcpp/TestFrameVarDirectIvarObjCPlusPlus.py
+++ b/lldb/test/API/commands/frame/var/direct-ivar/objcpp/TestFrameVarDirectIvarObjCPlusPlus.py
@@ -5,7 +5,7 @@
class TestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
def test_objc_self(self):
self.build()
lldbutil.run_to_source_breakpoint(
@@ -13,7 +13,7 @@ def test_objc_self(self):
)
self.expect("frame variable _ivar", startstr="(int) _ivar = 30")
- @requireDarwin
+ @requireDarwin()
def test_objc_explicit_self(self):
self.build()
lldbutil.run_to_source_breakpoint(
@@ -21,7 +21,7 @@ def test_objc_explicit_self(self):
)
self.expect("frame variable _ivar", startstr="(int) _ivar = 30")
- @requireDarwin
+ @requireDarwin()
def test_cpp_this(self):
self.build()
lldbutil.run_to_source_breakpoint(
diff --git a/lldb/test/API/commands/gui/expand-threads-tree/TestGuiExpandThreadsTree.py b/lldb/test/API/commands/gui/expand-threads-tree/TestGuiExpandThreadsTree.py
index ca9f466c48ce0..81837b74eb1ec 100644
--- a/lldb/test/API/commands/gui/expand-threads-tree/TestGuiExpandThreadsTree.py
+++ b/lldb/test/API/commands/gui/expand-threads-tree/TestGuiExpandThreadsTree.py
@@ -10,7 +10,7 @@
from lldbsuite.test.lldbpexpect import PExpectTest
- at requireThreadSupport
+ at requireThreadSupport()
class TestGuiExpandThreadsTree(PExpectTest):
# PExpect uses many timeouts internally and doesn't play well
# under ASAN on a loaded machine..
diff --git a/lldb/test/API/commands/gui/spawn-threads/TestGuiSpawnThreads.py b/lldb/test/API/commands/gui/spawn-threads/TestGuiSpawnThreads.py
index 9ea2f80bff789..50f9757ece1a5 100644
--- a/lldb/test/API/commands/gui/spawn-threads/TestGuiSpawnThreads.py
+++ b/lldb/test/API/commands/gui/spawn-threads/TestGuiSpawnThreads.py
@@ -11,7 +11,7 @@
import sys
- at requireThreadSupport
+ at requireThreadSupport()
class TestGuiSpawnThreadsTest(PExpectTest):
# This tests spawns threads, so low resources on the host may
# lead to the test program being stalled for a long time.
diff --git a/lldb/test/API/commands/platform/sdk/TestPlatformSDK.py b/lldb/test/API/commands/platform/sdk/TestPlatformSDK.py
index 18934d3a5fdb1..c350ccba1476a 100644
--- a/lldb/test/API/commands/platform/sdk/TestPlatformSDK.py
+++ b/lldb/test/API/commands/platform/sdk/TestPlatformSDK.py
@@ -38,8 +38,8 @@ def port_not_available(self):
return None
@no_debug_info_test
- @requireDarwin
- @requireSocketPermission # debugserver listens on PORT
+ @requireDarwin()
+ @requireSocketPermission("debugserver listens on PORT")
@skipTestIfFn(no_debugserver)
@skipTestIfFn(port_not_available)
@skipIfRemote
diff --git a/lldb/test/API/commands/process/attach-resume/TestAttachResume.py b/lldb/test/API/commands/process/attach-resume/TestAttachResume.py
index dcb86543f6a0f..e9d59b23d77aa 100644
--- a/lldb/test/API/commands/process/attach-resume/TestAttachResume.py
+++ b/lldb/test/API/commands/process/attach-resume/TestAttachResume.py
@@ -11,7 +11,7 @@
exe_name = "AttachResume" # Must match Makefile
- at requireThreadSupport
+ at requireThreadSupport()
class AttachResumeTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/commands/process/attach/attach_denied/TestAttachDenied.py b/lldb/test/API/commands/process/attach/attach_denied/TestAttachDenied.py
index f22bcac38bee6..3675b937c3506 100644
--- a/lldb/test/API/commands/process/attach/attach_denied/TestAttachDenied.py
+++ b/lldb/test/API/commands/process/attach/attach_denied/TestAttachDenied.py
@@ -12,11 +12,11 @@
exe_name = "AttachDenied" # Must match Makefile
- at requireSignals
+ at requireSignals()
class AttachDeniedTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requirePOSIX
+ @requirePOSIX()
@skipIfiOSSimulator
@skipIfDarwinEmbedded # ptrace(ATTACH_REQUEST...) won't work on ios/tvos/etc
@skipIfAsan # Times out inconsistently under asan
diff --git a/lldb/test/API/commands/process/detach-resumes/TestDetachResumes.py b/lldb/test/API/commands/process/detach-resumes/TestDetachResumes.py
index b7b00071da8df..9a7e235117d75 100644
--- a/lldb/test/API/commands/process/detach-resumes/TestDetachResumes.py
+++ b/lldb/test/API/commands/process/detach-resumes/TestDetachResumes.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class DetachResumesTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/commands/process/handle/TestProcessHandle.py b/lldb/test/API/commands/process/handle/TestProcessHandle.py
index f6f39a9d28690..bcb3af1dddbb1 100644
--- a/lldb/test/API/commands/process/handle/TestProcessHandle.py
+++ b/lldb/test/API/commands/process/handle/TestProcessHandle.py
@@ -6,7 +6,7 @@
class TestProcessHandle(TestBase):
@no_debug_info_test
- @requireSignals
+ @requireSignals()
def test_process_handle(self):
"""Test that calling process handle before we have a target, and before we
have a process will affect the process. Also that the signal settings
diff --git a/lldb/test/API/commands/protocol/TestMCPUnixSocket.py b/lldb/test/API/commands/protocol/TestMCPUnixSocket.py
index 03900817587c3..e1649c9c9c2ff 100644
--- a/lldb/test/API/commands/protocol/TestMCPUnixSocket.py
+++ b/lldb/test/API/commands/protocol/TestMCPUnixSocket.py
@@ -11,8 +11,8 @@
class MCPUnixSocketCommandTestCase(TestBase):
- @requirePOSIX
- @requireSocketPermission
+ @requirePOSIX()
+ @requireSocketPermission()
@skipIfRemote
@no_debug_info_test
def test_unix_socket(self):
diff --git a/lldb/test/API/commands/register/aarch64_sme_z_registers/za_dynamic_resize/TestZAThreadedDynamic.py b/lldb/test/API/commands/register/aarch64_sme_z_registers/za_dynamic_resize/TestZAThreadedDynamic.py
index 56d7a52b67b76..215f0d3a44dd7 100644
--- a/lldb/test/API/commands/register/aarch64_sme_z_registers/za_dynamic_resize/TestZAThreadedDynamic.py
+++ b/lldb/test/API/commands/register/aarch64_sme_z_registers/za_dynamic_resize/TestZAThreadedDynamic.py
@@ -10,7 +10,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class AArch64ZAThreadedTestCase(TestBase):
def get_supported_vg(self):
exe = self.getBuildArtifact("a.out")
diff --git a/lldb/test/API/commands/register/aarch64_sve_registers/rw_access_dynamic_resize/TestSVEThreadedDynamic.py b/lldb/test/API/commands/register/aarch64_sve_registers/rw_access_dynamic_resize/TestSVEThreadedDynamic.py
index 32fb332bd4fe0..3b188e662ab46 100644
--- a/lldb/test/API/commands/register/aarch64_sve_registers/rw_access_dynamic_resize/TestSVEThreadedDynamic.py
+++ b/lldb/test/API/commands/register/aarch64_sve_registers/rw_access_dynamic_resize/TestSVEThreadedDynamic.py
@@ -15,7 +15,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class Mode(Enum):
SVE = 0
SSVE = 1
diff --git a/lldb/test/API/commands/statistics/basic/TestStats.py b/lldb/test/API/commands/statistics/basic/TestStats.py
index 56bf61ccb4a53..a3e83931b270a 100644
--- a/lldb/test/API/commands/statistics/basic/TestStats.py
+++ b/lldb/test/API/commands/statistics/basic/TestStats.py
@@ -757,7 +757,7 @@ def test_dwo_id_mismatch_error_stats(self):
self.assertIn("dwoErrorCount", debug_stats["modules"][0])
self.assertEqual(debug_stats["modules"][0]["dwoErrorCount"], 1)
- @requireDarwin
+ @requireDarwin()
@no_debug_info_test
def test_dsym_binary_has_symfile_in_stats(self):
"""
@@ -801,7 +801,7 @@ def test_dsym_binary_has_symfile_in_stats(self):
# statistics.
self.assertNotIn("symbolFileModuleIdentifiers", exe_stats)
- @requireDarwin
+ @requireDarwin()
@no_debug_info_test
def test_no_dsym_binary_has_symfile_identifiers_in_stats(self):
"""
@@ -860,7 +860,7 @@ def test_no_dsym_binary_has_symfile_identifiers_in_stats(self):
# Make sure each .o file has some debug info bytes.
self.assertGreater(o_module["debugInfoByteSize"], 0)
- @requireDarwin
+ @requireDarwin()
@no_debug_info_test
def test_had_frame_variable_errors(self):
"""
diff --git a/lldb/test/API/commands/target/auto-install-main-executable/TestAutoInstallMainExecutable.py b/lldb/test/API/commands/target/auto-install-main-executable/TestAutoInstallMainExecutable.py
index 080e0afca3c3a..1db0808ede4ed 100644
--- a/lldb/test/API/commands/target/auto-install-main-executable/TestAutoInstallMainExecutable.py
+++ b/lldb/test/API/commands/target/auto-install-main-executable/TestAutoInstallMainExecutable.py
@@ -15,7 +15,7 @@ class TestAutoInstallMainExecutable(TestBase):
NO_DEBUG_INFO_TESTCASE = True
SHARED_BUILD_TESTCASE = False
- @requireSocketPermission # lldb-server runs in platform mode on a socket
+ @requireSocketPermission("lldb-server runs in platform mode on a socket")
@skipIfRemote
@skipIfWindows # This test is flaky on Windows
def test_target_auto_install_main_executable(self):
diff --git a/lldb/test/API/commands/target/dump-pcm-info/TestDumpPCMInfo.py b/lldb/test/API/commands/target/dump-pcm-info/TestDumpPCMInfo.py
index 7e35d719e46f8..26d4130aedd95 100644
--- a/lldb/test/API/commands/target/dump-pcm-info/TestDumpPCMInfo.py
+++ b/lldb/test/API/commands/target/dump-pcm-info/TestDumpPCMInfo.py
@@ -13,7 +13,7 @@
class TestCase(TestBase):
@no_debug_info_test
- @requireDarwin
+ @requireDarwin()
def test(self):
self.build()
diff --git a/lldb/test/API/commands/target/dump-separate-debug-info/oso/TestDumpOso.py b/lldb/test/API/commands/target/dump-separate-debug-info/oso/TestDumpOso.py
index b0af84cc53a31..e324772665271 100644
--- a/lldb/test/API/commands/target/dump-separate-debug-info/oso/TestDumpOso.py
+++ b/lldb/test/API/commands/target/dump-separate-debug-info/oso/TestDumpOso.py
@@ -25,7 +25,7 @@ def get_osos_from_json_output(self):
return result
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_shows_oso_loaded_json_output(self):
self.build(debug_info="dwarf")
exe = self.getBuildArtifact("a.out")
@@ -47,7 +47,7 @@ def test_shows_oso_loaded_json_output(self):
self.assertTrue(osos[exe][foo_o]["loaded"])
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_shows_oso_not_loaded_json_output(self):
self.build(debug_info="dwarf")
exe = self.getBuildArtifact("a.out")
@@ -77,7 +77,7 @@ def test_shows_oso_not_loaded_json_output(self):
self.assertNotIn(foo_o, output[exe])
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_shows_oso_loaded_table_output(self):
self.build(debug_info="dwarf")
exe = self.getBuildArtifact("a.out")
@@ -103,7 +103,7 @@ def test_shows_oso_loaded_table_output(self):
)
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_shows_oso_not_loaded_table_output(self):
self.build(debug_info="dwarf")
exe = self.getBuildArtifact("a.out")
@@ -129,7 +129,7 @@ def test_shows_oso_not_loaded_table_output(self):
)
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_osos_loaded_symbols_on_demand(self):
self.build(debug_info="dwarf")
exe = self.getBuildArtifact("a.out")
diff --git a/lldb/test/API/commands/target/stop-hooks/TestStopHooks.py b/lldb/test/API/commands/target/stop-hooks/TestStopHooks.py
index 896f21e8a901b..e4d8f5ad61110 100644
--- a/lldb/test/API/commands/target/stop-hooks/TestStopHooks.py
+++ b/lldb/test/API/commands/target/stop-hooks/TestStopHooks.py
@@ -9,7 +9,7 @@
from lldbsuite.test.lldbtest import *
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestStopHooks(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/commands/thread/backtrace/TestThreadBacktraceRepeat.py b/lldb/test/API/commands/thread/backtrace/TestThreadBacktraceRepeat.py
index 50ed9dfe1b31c..da0aef343d11c 100644
--- a/lldb/test/API/commands/thread/backtrace/TestThreadBacktraceRepeat.py
+++ b/lldb/test/API/commands/thread/backtrace/TestThreadBacktraceRepeat.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class TestThreadBacktracePage(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/commands/trace/multiple-threads/TestTraceStartStopMultipleThreads.py b/lldb/test/API/commands/trace/multiple-threads/TestTraceStartStopMultipleThreads.py
index 919f0f3af794a..0587f8a9e8a5a 100644
--- a/lldb/test/API/commands/trace/multiple-threads/TestTraceStartStopMultipleThreads.py
+++ b/lldb/test/API/commands/trace/multiple-threads/TestTraceStartStopMultipleThreads.py
@@ -6,7 +6,7 @@
from lldbsuite.test.decorators import *
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfNoIntelPT
class TestTraceStartStopMultipleThreads(TraceIntelPTTestCaseBase):
@skipIf(oslist=no_match(["linux"]), archs=no_match(["i386", "x86_64"]))
diff --git a/lldb/test/API/commands/watchpoints/hello_watchlocation/TestWatchLocation.py b/lldb/test/API/commands/watchpoints/hello_watchlocation/TestWatchLocation.py
index bce56ce6e79e4..9253845901458 100644
--- a/lldb/test/API/commands/watchpoints/hello_watchlocation/TestWatchLocation.py
+++ b/lldb/test/API/commands/watchpoints/hello_watchlocation/TestWatchLocation.py
@@ -10,7 +10,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class HelloWatchLocationTestCase(TestBase):
SHARED_BUILD_TESTCASE = False
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/commands/watchpoints/multiple_threads/TestWatchpointMultipleThreads.py b/lldb/test/API/commands/watchpoints/multiple_threads/TestWatchpointMultipleThreads.py
index 97519fa454536..87330f6dfcc04 100644
--- a/lldb/test/API/commands/watchpoints/multiple_threads/TestWatchpointMultipleThreads.py
+++ b/lldb/test/API/commands/watchpoints/multiple_threads/TestWatchpointMultipleThreads.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class WatchpointForMultipleThreadsTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
main_spec = lldb.SBFileSpec("main.cpp", False)
diff --git a/lldb/test/API/commands/watchpoints/watchpoint_set_command/TestWatchLocationWithWatchSet.py b/lldb/test/API/commands/watchpoints/watchpoint_set_command/TestWatchLocationWithWatchSet.py
index b598d49cc5031..a1b189b1191df 100644
--- a/lldb/test/API/commands/watchpoints/watchpoint_set_command/TestWatchLocationWithWatchSet.py
+++ b/lldb/test/API/commands/watchpoints/watchpoint_set_command/TestWatchLocationWithWatchSet.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class WatchLocationUsingWatchpointSetTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/driver/longpath/TestLongPathDriver.py b/lldb/test/API/driver/longpath/TestLongPathDriver.py
index 7779e934efdae..d9619632aa0e6 100644
--- a/lldb/test/API/driver/longpath/TestLongPathDriver.py
+++ b/lldb/test/API/driver/longpath/TestLongPathDriver.py
@@ -15,7 +15,7 @@
MAX_PATH = 260
- at requireWindows
+ at requireWindows()
class DriverLongPathTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/functionalities/always-run-threads/TestAlwaysRunThreadNames.py b/lldb/test/API/functionalities/always-run-threads/TestAlwaysRunThreadNames.py
index 7b01a9eebd37d..e924ce17bb8d4 100644
--- a/lldb/test/API/functionalities/always-run-threads/TestAlwaysRunThreadNames.py
+++ b/lldb/test/API/functionalities/always-run-threads/TestAlwaysRunThreadNames.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class AlwaysRunThreadNamesTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/functionalities/archives/TestBSDArchives.py b/lldb/test/API/functionalities/archives/TestBSDArchives.py
index 2322ed55774cb..3b32616f46c37 100644
--- a/lldb/test/API/functionalities/archives/TestBSDArchives.py
+++ b/lldb/test/API/functionalities/archives/TestBSDArchives.py
@@ -94,7 +94,7 @@ def check_frame_variable_errors(self, thread, error_strings):
)
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_frame_var_errors_when_archive_missing(self):
"""
Break inside a() and remove libfoo.a to make sure we can't load
@@ -168,7 +168,7 @@ def test_archive_specifications(self):
self.assertEqual(spec.GetObjectSize(), size_b, libfoothin_path)
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_frame_var_errors_when_thin_archive_malformed(self):
"""
Create thin archive libfoo.a and make it malformed to make sure
@@ -222,7 +222,7 @@ def test_frame_var_errors_when_thin_archive_malformed(self):
)
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_frame_var_errors_when_mtime_mistmatch_for_object_in_archive(self):
"""
Break inside a() and modify the modification time for "a.o" within
diff --git a/lldb/test/API/functionalities/asan/TestMemoryHistory.py b/lldb/test/API/functionalities/asan/TestMemoryHistory.py
index eaf4e43ff3bc6..4469828aa1612 100644
--- a/lldb/test/API/functionalities/asan/TestMemoryHistory.py
+++ b/lldb/test/API/functionalities/asan/TestMemoryHistory.py
@@ -19,7 +19,7 @@ def test_compiler_rt_asan(self):
self.build(make_targets=["compiler_rt-asan"])
self.compiler_rt_asan_tests()
- @requireDarwin
+ @requireDarwin()
@skipIf(macos_version=["<", "15.5"])
def test_libsanitizers_traces(self):
self.build(make_targets=["libsanitizers-traces"])
diff --git a/lldb/test/API/functionalities/breakpoint/breakpoint_command_auto_continue/TestBreakpointCommandAutoContinue.py b/lldb/test/API/functionalities/breakpoint/breakpoint_command_auto_continue/TestBreakpointCommandAutoContinue.py
index 1ffcd282e897c..47988c31953f2 100644
--- a/lldb/test/API/functionalities/breakpoint/breakpoint_command_auto_continue/TestBreakpointCommandAutoContinue.py
+++ b/lldb/test/API/functionalities/breakpoint/breakpoint_command_auto_continue/TestBreakpointCommandAutoContinue.py
@@ -11,7 +11,7 @@
from lldbsuite.test.lldbpexpect import PExpectTest
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfAsan
@skipIfEditlineSupportMissing
class BreakpointCommandAutoContinueTestCase(PExpectTest):
diff --git a/lldb/test/API/functionalities/breakpoint/breakpoint_conditions/crashing_condition/TestCrashingCondition.py b/lldb/test/API/functionalities/breakpoint/breakpoint_conditions/crashing_condition/TestCrashingCondition.py
index bf1b9b6215188..021c59c26dba9 100644
--- a/lldb/test/API/functionalities/breakpoint/breakpoint_conditions/crashing_condition/TestCrashingCondition.py
+++ b/lldb/test/API/functionalities/breakpoint/breakpoint_conditions/crashing_condition/TestCrashingCondition.py
@@ -9,7 +9,7 @@
from lldbsuite.test.lldbtest import *
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCrashingCondition(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/functionalities/breakpoint/breakpoint_on_lambda_capture/TestBreakOnLambdaCapture.py b/lldb/test/API/functionalities/breakpoint/breakpoint_on_lambda_capture/TestBreakOnLambdaCapture.py
index 78129df8a4244..ea49b27ed828e 100644
--- a/lldb/test/API/functionalities/breakpoint/breakpoint_on_lambda_capture/TestBreakOnLambdaCapture.py
+++ b/lldb/test/API/functionalities/breakpoint/breakpoint_on_lambda_capture/TestBreakOnLambdaCapture.py
@@ -10,7 +10,7 @@
from lldbsuite.test.lldbtest import *
- at requireThreadSupport
+ at requireThreadSupport()
# Flakey and stalls locally - https://github.com/llvm/llvm-project/issues/220942.
@skipIf(oslist=["windows"], archs=["aarch64"])
class TestBreakOnLambdaCapture(TestBase):
diff --git a/lldb/test/API/functionalities/breakpoint/hardware_breakpoints/hardware_breakpoint_on_multiple_threads/TestHWBreakMultiThread.py b/lldb/test/API/functionalities/breakpoint/hardware_breakpoints/hardware_breakpoint_on_multiple_threads/TestHWBreakMultiThread.py
index eb6cb53fa0499..af17c52530541 100644
--- a/lldb/test/API/functionalities/breakpoint/hardware_breakpoints/hardware_breakpoint_on_multiple_threads/TestHWBreakMultiThread.py
+++ b/lldb/test/API/functionalities/breakpoint/hardware_breakpoints/hardware_breakpoint_on_multiple_threads/TestHWBreakMultiThread.py
@@ -11,7 +11,7 @@
from functionalities.breakpoint.hardware_breakpoints.base import *
- at requireThreadSupport
+ at requireThreadSupport()
class HardwareBreakpointMultiThreadTestCase(HardwareBreakpointTestBase):
@skipTestIfFn(HardwareBreakpointTestBase.hw_breakpoints_unsupported)
def test_hw_break_set_delete_multi_thread_macos(self):
diff --git a/lldb/test/API/functionalities/breakpoint/jit_loader_rtdyld_elf/TestJitBreakPoint.py b/lldb/test/API/functionalities/breakpoint/jit_loader_rtdyld_elf/TestJitBreakPoint.py
index 8b23180623250..af6e8e4e191e2 100644
--- a/lldb/test/API/functionalities/breakpoint/jit_loader_rtdyld_elf/TestJitBreakPoint.py
+++ b/lldb/test/API/functionalities/breakpoint/jit_loader_rtdyld_elf/TestJitBreakPoint.py
@@ -10,7 +10,7 @@
class TestJitBreakpoint(TestBase):
@skipUnlessArch("x86_64")
- @requireClang
+ @requireClang()
@expectedFailureAll(oslist=["windows"])
def test_jit_breakpoints(self):
self.build()
diff --git a/lldb/test/API/functionalities/breakpoint/scripted_bkpt/was_hit/TestWasHit.py b/lldb/test/API/functionalities/breakpoint/scripted_bkpt/was_hit/TestWasHit.py
index 7db6b111f79e1..8d851e53e5412 100644
--- a/lldb/test/API/functionalities/breakpoint/scripted_bkpt/was_hit/TestWasHit.py
+++ b/lldb/test/API/functionalities/breakpoint/scripted_bkpt/was_hit/TestWasHit.py
@@ -13,7 +13,7 @@ class TestWasHit(TestBase):
NO_DEBUG_INFO_TESTCASE = True
@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24528")
- @requireExpressionEvaluation # (was_hit evaluates change_him())
+ @requireExpressionEvaluation("was_hit evaluates change_him()")
def test_was_hit_resolver(self):
"""Use facade breakpoints to emulate hitting some locations"""
self.build()
diff --git a/lldb/test/API/functionalities/breakpoint/two_hits_one_actual/TestTwoHitsOneActual.py b/lldb/test/API/functionalities/breakpoint/two_hits_one_actual/TestTwoHitsOneActual.py
index 5afaa24f8e92b..2aa200ef73f58 100644
--- a/lldb/test/API/functionalities/breakpoint/two_hits_one_actual/TestTwoHitsOneActual.py
+++ b/lldb/test/API/functionalities/breakpoint/two_hits_one_actual/TestTwoHitsOneActual.py
@@ -11,7 +11,7 @@
from lldbsuite.test.lldbtest import *
- at requireThreadSupport
+ at requireThreadSupport()
class TestTwoHitsOneActual(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py b/lldb/test/API/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py
index 898790e1a8c77..257ac59b62f06 100644
--- a/lldb/test/API/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py
+++ b/lldb/test/API/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py
@@ -10,7 +10,7 @@
class DataFormatterBoolRefPtr(TestBase):
- @requireDarwin
+ @requireDarwin()
def test_boolrefptr_with_run_command(self):
"""Test the formatters we use for BOOL& and BOOL* in Objective-C."""
self.build()
diff --git a/lldb/test/API/functionalities/data-formatter/builtin-formats/TestBuiltinFormats.py b/lldb/test/API/functionalities/data-formatter/builtin-formats/TestBuiltinFormats.py
index 1d6ab494aa2fb..47b3a53131923 100644
--- a/lldb/test/API/functionalities/data-formatter/builtin-formats/TestBuiltinFormats.py
+++ b/lldb/test/API/functionalities/data-formatter/builtin-formats/TestBuiltinFormats.py
@@ -8,7 +8,7 @@
from lldbsuite.test.lldbtest import *
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
def getFormatted(self, format, expr):
"""
diff --git a/lldb/test/API/functionalities/data-formatter/compactvectors/TestCompactVectors.py b/lldb/test/API/functionalities/data-formatter/compactvectors/TestCompactVectors.py
index 0b976b5d558ed..099b4a78fde36 100644
--- a/lldb/test/API/functionalities/data-formatter/compactvectors/TestCompactVectors.py
+++ b/lldb/test/API/functionalities/data-formatter/compactvectors/TestCompactVectors.py
@@ -17,7 +17,7 @@ def setUp(self):
self.line = line_number("main.cpp", "// Set break point at this line.")
@skipIf(compiler="clang", compiler_version=["<", "19.0"])
- @requireDarwin
+ @requireDarwin()
def test_with_run_command(self):
"""Test that that file and class static variables display correctly."""
self.build()
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py b/lldb/test/API/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py
index d3f8cc85ad916..852f54fe3d037 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class CppDataFormatterTestCase(TestBase):
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSBundle.py b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSBundle.py
index cb1d06b9720a1..508b8cb698871 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSBundle.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSBundle.py
@@ -23,7 +23,7 @@ def test_nsbundle_with_run_command(self):
"""Test formatters for NSBundle."""
self.appkit_tester_impl(self.nsbundle_data_formatter_commands, True)
- @requireDarwin
+ @requireDarwin()
@requiresSwiftPlugin(min_apple_os_version=27.0)
def test_nsbundle_with_run_command_no_sonct(self):
"""Test formatters for NSBundle."""
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSData.py b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSData.py
index ed087f38e99e2..cb49d4bbdb320 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSData.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSData.py
@@ -19,7 +19,7 @@ def test_nsdata_with_run_command(self):
"""Test formatters for NSData."""
self.appkit_tester_impl(self.nsdata_data_formatter_commands, True)
- @requireDarwin
+ @requireDarwin()
def test_nsdata_with_run_command_no_const(self):
"""Test formatters for NSData."""
self.appkit_tester_impl(self.nsdata_data_formatter_commands, False)
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSError.py b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSError.py
index e6ab6ef6f1a86..b71c397b7a3ee 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSError.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSError.py
@@ -19,7 +19,7 @@ def test_nserror_with_run_command(self):
"""Test formatters for NSError."""
self.appkit_tester_impl(self.nserror_data_formatter_commands, True)
- @requireDarwin
+ @requireDarwin()
def test_nserror_with_run_command_no_const(self):
"""Test formatters for NSError."""
self.appkit_tester_impl(self.nserror_data_formatter_commands, False)
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSNumber.py b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSNumber.py
index f6f80d6181595..ef647461c7fe9 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSNumber.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSNumber.py
@@ -14,12 +14,12 @@
class ObjCDataFormatterNSNumber(ObjCDataFormatterTestCase):
SHARED_BUILD_TESTCASE = False
- @requireDarwin
+ @requireDarwin()
def test_nsnumber_with_run_command(self):
"""Test formatters for NS container classes."""
self.appkit_tester_impl(self.nscontainers_data_formatter_commands, True)
- @requireDarwin
+ @requireDarwin()
def test_nsnumber_with_run_command_no_const(self):
"""Test formatters for NS container classes."""
self.appkit_tester_impl(self.nscontainers_data_formatter_commands, False)
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSURL.py b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSURL.py
index e3be62556a2dd..e94e5c55ec82a 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSURL.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSURL.py
@@ -19,7 +19,7 @@ def test_nsurl_with_run_command(self):
"""Test formatters for NSURL."""
self.appkit_tester_impl(self.nsurl_data_formatter_commands, True)
- @requireDarwin
+ @requireDarwin()
def test_nsurl_with_run_command_no_const(self):
"""Test formatters for NSURL."""
self.appkit_tester_impl(self.nsurl_data_formatter_commands, False)
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjNSException.py b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjNSException.py
index 7758558795913..975e3e03d97f4 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjNSException.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjNSException.py
@@ -19,7 +19,7 @@ def test_nsexception_with_run_command(self):
"""Test formatters for NSException."""
self.appkit_tester_impl(self.nsexception_data_formatter_commands, True)
- @requireDarwin
+ @requireDarwin()
def test_nsexception_with_run_command_no_const(self):
"""Test formatters for NSException."""
self.appkit_tester_impl(self.nsexception_data_formatter_commands, False)
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/cmtime/TestDataFormatterCMTime.py b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/cmtime/TestDataFormatterCMTime.py
index 2d5ee9845ae7b..a33450469c658 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/cmtime/TestDataFormatterCMTime.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/cmtime/TestDataFormatterCMTime.py
@@ -7,7 +7,7 @@
class CMTimeDataFormatterTestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
def test_nsindexpath_with_run_command(self):
"""Test formatters for CMTime."""
self.build()
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/nsindexpath/TestDataFormatterNSIndexPath.py b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/nsindexpath/TestDataFormatterNSIndexPath.py
index 46c8673e9a1fe..6812247d97f99 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/nsindexpath/TestDataFormatterNSIndexPath.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/nsindexpath/TestDataFormatterNSIndexPath.py
@@ -39,7 +39,7 @@ def cleanup():
self.addTearDownHook(cleanup)
commands()
- @requireDarwin
+ @requireDarwin()
@expectedFailureAll(archs=["i386"], bugnumber="rdar://28656605")
@expectedFailureAll(
archs=["armv7", "armv7k", "arm64_32"], bugnumber="rdar://problem/34561607"
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/nsstring/TestDataFormatterNSString.py b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/nsstring/TestDataFormatterNSString.py
index b67dedde46763..40b28fcd8ff56 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-objc/nsstring/TestDataFormatterNSString.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-objc/nsstring/TestDataFormatterNSString.py
@@ -41,19 +41,19 @@ def cleanup():
self.addTearDownHook(cleanup)
commands()
- @requireDarwin
+ @requireDarwin()
@no_debug_info_test
def test_nsstring_with_run_command(self):
"""Test formatters for NSString."""
self.appkit_tester_impl(self.nsstring_data_formatter_commands)
- @requireDarwin
+ @requireDarwin()
@no_debug_info_test
def test_rdar11106605_with_run_command(self):
"""Check that Unicode characters come out of CFString summary correctly."""
self.appkit_tester_impl(self.rdar11106605_commands)
- @requireDarwin
+ @requireDarwin()
@no_debug_info_test
def test_nsstring_withNULS_with_run_command(self):
"""Test formatters for NSString."""
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-proper-plurals/TestFormattersOneIsSingular.py b/lldb/test/API/functionalities/data-formatter/data-formatter-proper-plurals/TestFormattersOneIsSingular.py
index 93618d502fad0..59ab65a630c3e 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-proper-plurals/TestFormattersOneIsSingular.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-proper-plurals/TestFormattersOneIsSingular.py
@@ -10,7 +10,7 @@
class DataFormatterOneIsSingularTestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
def test_one_is_singular_with_run_command(self):
"""Test that 1 item is not as reported as 1 items."""
self.build()
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py b/lldb/test/API/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py
index a29fad0fca3c5..549a9aea24f45 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class DataFormatterSynthValueTestCase(TestBase):
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/API/functionalities/data-formatter/embedded-summary/TestEmbeddedTypeSummary.py b/lldb/test/API/functionalities/data-formatter/embedded-summary/TestEmbeddedTypeSummary.py
index f8ddb1ac636cc..fb6df7b68abf8 100644
--- a/lldb/test/API/functionalities/data-formatter/embedded-summary/TestEmbeddedTypeSummary.py
+++ b/lldb/test/API/functionalities/data-formatter/embedded-summary/TestEmbeddedTypeSummary.py
@@ -5,7 +5,7 @@
class TestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
def test(self):
self.build()
lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.c"))
diff --git a/lldb/test/API/functionalities/data-formatter/nsarraysynth/TestNSArraySynthetic.py b/lldb/test/API/functionalities/data-formatter/nsarraysynth/TestNSArraySynthetic.py
index f0c80461e7930..5511da12f3877 100644
--- a/lldb/test/API/functionalities/data-formatter/nsarraysynth/TestNSArraySynthetic.py
+++ b/lldb/test/API/functionalities/data-formatter/nsarraysynth/TestNSArraySynthetic.py
@@ -16,7 +16,7 @@ def setUp(self):
# Find the line number to break at.
self.line = line_number("main.m", "// Set break point at this line.")
- @requireDarwin
+ @requireDarwin()
def test_rdar11086338_with_run_command(self):
"""Test that NSArray reports its synthetic children properly."""
self.build()
diff --git a/lldb/test/API/functionalities/data-formatter/nsdictionarysynth/TestNSDictionarySynthetic.py b/lldb/test/API/functionalities/data-formatter/nsdictionarysynth/TestNSDictionarySynthetic.py
index 800aff69a99ca..eae111e42fb8f 100644
--- a/lldb/test/API/functionalities/data-formatter/nsdictionarysynth/TestNSDictionarySynthetic.py
+++ b/lldb/test/API/functionalities/data-formatter/nsdictionarysynth/TestNSDictionarySynthetic.py
@@ -17,13 +17,13 @@ def setUp(self):
# Find the line number to break at.
self.line = line_number("main.m", "// Set break point at this line.")
- @requireDarwin
+ @requireDarwin()
def test_rdar11988289_with_run_command(self):
"""Test that NSDictionary reports its synthetic children properly."""
self.build()
self.run_tests()
- @requireDarwin
+ @requireDarwin()
def test_rdar11988289_with_run_command_no_const(self):
"""Test that NSDictionary reports its synthetic children properly."""
disable_constant_classes = {
diff --git a/lldb/test/API/functionalities/data-formatter/nssetsynth/TestNSSetSynthetic.py b/lldb/test/API/functionalities/data-formatter/nssetsynth/TestNSSetSynthetic.py
index 6eb7017926d58..c92a26b6fcf9a 100644
--- a/lldb/test/API/functionalities/data-formatter/nssetsynth/TestNSSetSynthetic.py
+++ b/lldb/test/API/functionalities/data-formatter/nssetsynth/TestNSSetSynthetic.py
@@ -18,13 +18,13 @@ def setUp(self):
# Find the line number to break at.
self.line = line_number("main.m", "// Set break point at this line.")
- @requireDarwin
+ @requireDarwin()
def test_rdar12529957_with_run_command(self):
"""Test that NSSet reports its synthetic children properly."""
self.build()
self.run_tests()
- @requireDarwin
+ @requireDarwin()
def test_rdar12529957_with_run_command_no_const(self):
"""Test that NSSet reports its synthetic children properly."""
disable_constant_classes = {
diff --git a/lldb/test/API/functionalities/data-formatter/ostypeformatting/TestFormattersOsType.py b/lldb/test/API/functionalities/data-formatter/ostypeformatting/TestFormattersOsType.py
index c701e34bb6483..e5c259c30b87d 100644
--- a/lldb/test/API/functionalities/data-formatter/ostypeformatting/TestFormattersOsType.py
+++ b/lldb/test/API/functionalities/data-formatter/ostypeformatting/TestFormattersOsType.py
@@ -16,7 +16,7 @@ def setUp(self):
# Find the line number to break at.
self.line = line_number("main.mm", "// Set break point at this line.")
- @requireDarwin
+ @requireDarwin()
def test_ostype_with_run_command(self):
"""Test the formatters we use for OSType."""
self.build()
diff --git a/lldb/test/API/functionalities/data-formatter/poarray/TestPrintObjectArray.py b/lldb/test/API/functionalities/data-formatter/poarray/TestPrintObjectArray.py
index 3456cdb1b1733..5d43586645c9e 100644
--- a/lldb/test/API/functionalities/data-formatter/poarray/TestPrintObjectArray.py
+++ b/lldb/test/API/functionalities/data-formatter/poarray/TestPrintObjectArray.py
@@ -12,13 +12,13 @@
class PrintObjectArrayTestCase(TestBase):
SHARED_BUILD_TESTCASE = False
- @requireDarwin
+ @requireDarwin()
def test_print_array(self):
"""Test that expr -O -Z works"""
self.build()
self.printarray_data_formatter_commands()
- @requireDarwin
+ @requireDarwin()
def test_print_array_no_const(self):
"""Test that expr -O -Z works"""
disable_constant_classes = {
diff --git a/lldb/test/API/functionalities/data-formatter/setvaluefromcstring/TestSetValueFromCString.py b/lldb/test/API/functionalities/data-formatter/setvaluefromcstring/TestSetValueFromCString.py
index 819aede19f36f..fd25e164b693b 100644
--- a/lldb/test/API/functionalities/data-formatter/setvaluefromcstring/TestSetValueFromCString.py
+++ b/lldb/test/API/functionalities/data-formatter/setvaluefromcstring/TestSetValueFromCString.py
@@ -1,4 +1,4 @@
from lldbsuite.test import lldbinline
from lldbsuite.test import decorators
-lldbinline.MakeInlineTest(__file__, globals(), [decorators.requireDarwin])
+lldbinline.MakeInlineTest(__file__, globals(), [decorators.requireDarwin()])
diff --git a/lldb/test/API/functionalities/data-formatter/synthupdate/TestSyntheticFilterRecompute.py b/lldb/test/API/functionalities/data-formatter/synthupdate/TestSyntheticFilterRecompute.py
index 79aab51083a6d..01d236ca2a6a6 100644
--- a/lldb/test/API/functionalities/data-formatter/synthupdate/TestSyntheticFilterRecompute.py
+++ b/lldb/test/API/functionalities/data-formatter/synthupdate/TestSyntheticFilterRecompute.py
@@ -16,7 +16,7 @@ def setUp(self):
# Find the line number to break at.
self.line = line_number("main.m", "// Set break point at this line.")
- @requireDarwin
+ @requireDarwin()
def test_rdar12437442_with_run_command(self):
"""Test that we update SBValues correctly as dynamic types change."""
self.build()
diff --git a/lldb/test/API/functionalities/exec/TestExec.py b/lldb/test/API/functionalities/exec/TestExec.py
index b9551fe386638..5ae22889227a4 100644
--- a/lldb/test/API/functionalities/exec/TestExec.py
+++ b/lldb/test/API/functionalities/exec/TestExec.py
@@ -21,7 +21,7 @@ class ExecTestCase(TestBase):
) # this exec test has problems on ios systems
@expectedFailureNetBSD
@skipIfAsan # rdar://problem/43756823
- @requirePOSIX
+ @requirePOSIX()
def test_hitting_exec(self):
self.do_test(False)
@@ -34,7 +34,7 @@ def test_hitting_exec(self):
) # this exec test has problems on ios systems
@expectedFailureNetBSD
@skipIfAsan # rdar://problem/43756823
- @requirePOSIX
+ @requirePOSIX()
def test_skipping_exec(self):
self.do_test(True)
@@ -135,7 +135,7 @@ def cleanup():
) # this exec test has problems on ios systems
@expectedFailureNetBSD
@skipIfAsan # rdar://problem/43756823
- @requirePOSIX
+ @requirePOSIX()
def test_correct_thread_plan_state_before_exec(self):
"""
In this test we make sure that the Thread* cache in the ThreadPlans
diff --git a/lldb/test/API/functionalities/fat_archives/TestFatArchives.py b/lldb/test/API/functionalities/fat_archives/TestFatArchives.py
index 746244338bcb0..f01b7b917f89d 100644
--- a/lldb/test/API/functionalities/fat_archives/TestFatArchives.py
+++ b/lldb/test/API/functionalities/fat_archives/TestFatArchives.py
@@ -12,7 +12,7 @@
class FatArchiveTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
def test_breakpoint_resolution_dwarf(self):
if self.getArchitecture() == "x86_64":
self.build()
diff --git a/lldb/test/API/functionalities/fork/concurrent_vfork/TestConcurrentVFork.py b/lldb/test/API/functionalities/fork/concurrent_vfork/TestConcurrentVFork.py
index 701d900eaf975..913ab42e0aa18 100644
--- a/lldb/test/API/functionalities/fork/concurrent_vfork/TestConcurrentVFork.py
+++ b/lldb/test/API/functionalities/fork/concurrent_vfork/TestConcurrentVFork.py
@@ -8,7 +8,7 @@
from lldbsuite.test.decorators import *
- at requireThreadSupport
+ at requireThreadSupport()
class TestConcurrentVFork(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/functionalities/fork/resumes-child/TestForkResumesChild.py b/lldb/test/API/functionalities/fork/resumes-child/TestForkResumesChild.py
index d9105fb9a4c49..da1633dec1461 100644
--- a/lldb/test/API/functionalities/fork/resumes-child/TestForkResumesChild.py
+++ b/lldb/test/API/functionalities/fork/resumes-child/TestForkResumesChild.py
@@ -13,7 +13,7 @@
class TestForkResumesChild(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requirePOSIX
+ @requirePOSIX()
def test_step_over_fork(self):
self.build()
lldbutil.run_to_source_breakpoint(
diff --git a/lldb/test/API/functionalities/gdb_remote_client/TestPlatformMacOSX.py b/lldb/test/API/functionalities/gdb_remote_client/TestPlatformMacOSX.py
index 231a996239411..8f5263e5bdc2b 100644
--- a/lldb/test/API/functionalities/gdb_remote_client/TestPlatformMacOSX.py
+++ b/lldb/test/API/functionalities/gdb_remote_client/TestPlatformMacOSX.py
@@ -52,7 +52,7 @@ def test_ios(self):
)
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
@skipUnlessArch("arm64")
def test_macos(self):
self.platform_test(
diff --git a/lldb/test/API/functionalities/load_unload/TestLoadUnload.py b/lldb/test/API/functionalities/load_unload/TestLoadUnload.py
index b0290a3217196..71802605bc6b7 100644
--- a/lldb/test/API/functionalities/load_unload/TestLoadUnload.py
+++ b/lldb/test/API/functionalities/load_unload/TestLoadUnload.py
@@ -99,7 +99,7 @@ def setSvr4Support(self, enabled):
# dependencies are resolved relative to the debuggers PWD. Bug?
@expectedFailureAll(oslist=["freebsd", "linux", "netbsd"])
@skipIfRemote
- @requirePOSIX # Windows doesn't have dlopen and friends, dynamic libraries work differently
+ @requirePOSIX("Windows has no dlopen; dynamic libraries work differently")
def test_modules_search_paths(self):
"""Test target modules list after loading a different copy of the library libd.dylib, and verifies that it works with 'target modules search-paths add'."""
if self.platformIsDarwin():
@@ -156,7 +156,7 @@ def test_modules_search_paths(self):
# dependencies are resolved relative to the debuggers PWD. Bug?
@expectedFailureAll(oslist=["freebsd", "linux", "netbsd"])
@expectedFailureAndroid # wrong source file shows up for hidden library
- @requirePOSIX # Windows doesn't have dlopen and friends, dynamic libraries work differently
+ @requirePOSIX("Windows has no dlopen; dynamic libraries work differently")
@skipIfDarwinEmbedded
def test_dyld_library_path(self):
"""Test (DY)LD_LIBRARY_PATH after moving libd.dylib, which defines d_function, somewhere else."""
diff --git a/lldb/test/API/functionalities/load_using_paths/TestLoadUsingPaths.py b/lldb/test/API/functionalities/load_using_paths/TestLoadUsingPaths.py
index 23c7eab3327b3..e9228244d740b 100644
--- a/lldb/test/API/functionalities/load_using_paths/TestLoadUsingPaths.py
+++ b/lldb/test/API/functionalities/load_using_paths/TestLoadUsingPaths.py
@@ -34,7 +34,7 @@ def setUp(self):
self.hidden_lib = os.path.join(self.hidden_dir, self.lib_name)
@skipIfRemote
- @requirePOSIX # Windows doesn't have dlopen and friends, dynamic libraries work differently
+ @requirePOSIX("Windows has no dlopen; dynamic libraries work differently")
@expectedFlakeyNetBSD
@expectedFailureAll(oslist=["linux"], archs=["arm$"], bugnumber="llvm.org/pr45894")
def test_load_using_paths(self):
diff --git a/lldb/test/API/functionalities/longpath/TestLongPath.py b/lldb/test/API/functionalities/longpath/TestLongPath.py
index 62e2b866fe49b..d9d44086ae0aa 100644
--- a/lldb/test/API/functionalities/longpath/TestLongPath.py
+++ b/lldb/test/API/functionalities/longpath/TestLongPath.py
@@ -14,7 +14,7 @@
MAX_PATH = 260
- at requireWindows
+ at requireWindows()
class LongPathTargetTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/functionalities/memory/find/TestMemoryFind.py b/lldb/test/API/functionalities/memory/find/TestMemoryFind.py
index 7d8bd6be8a656..223822ec28804 100644
--- a/lldb/test/API/functionalities/memory/find/TestMemoryFind.py
+++ b/lldb/test/API/functionalities/memory/find/TestMemoryFind.py
@@ -16,7 +16,7 @@ def setUp(self):
# Find the line number to break inside main().
self.line = line_number("main.cpp", "// break here")
- @requireExpressionEvaluation # (memory find calls strlen())
+ @requireExpressionEvaluation("memory find calls strlen()")
def test_memory_find(self):
"""Test the 'memory find' command."""
self.build()
diff --git a/lldb/test/API/functionalities/module_cache/bsd/TestModuleCacheBSD.py b/lldb/test/API/functionalities/module_cache/bsd/TestModuleCacheBSD.py
index 8908d669d9a6c..b7e74f8cfd624 100644
--- a/lldb/test/API/functionalities/module_cache/bsd/TestModuleCacheBSD.py
+++ b/lldb/test/API/functionalities/module_cache/bsd/TestModuleCacheBSD.py
@@ -36,7 +36,7 @@ def get_module_cache_files(self, basename):
# Requires no dSYM, so we let the Makefile make the right stuff for us
@no_debug_info_test
- @requireDarwin
+ @requireDarwin()
def test(self):
"""
This test has been modified to make sure .o files that don't have
diff --git a/lldb/test/API/functionalities/mtc/simple/TestMTCSimple.py b/lldb/test/API/functionalities/mtc/simple/TestMTCSimple.py
index ca04dcf33b261..bcfd80b199206 100644
--- a/lldb/test/API/functionalities/mtc/simple/TestMTCSimple.py
+++ b/lldb/test/API/functionalities/mtc/simple/TestMTCSimple.py
@@ -11,7 +11,7 @@
class MTCSimpleTestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
@skipIf(compiler="clang", compiler_version=["<", "9.0"])
def test(self):
self.mtc_dylib_path = findMainThreadCheckerDylib()
diff --git a/lldb/test/API/functionalities/plugins/python_os_plugin/os_plugin_in_dsym/TestOSIndSYM.py b/lldb/test/API/functionalities/plugins/python_os_plugin/os_plugin_in_dsym/TestOSIndSYM.py
index 2ef3322392971..aeb20faad9f43 100644
--- a/lldb/test/API/functionalities/plugins/python_os_plugin/os_plugin_in_dsym/TestOSIndSYM.py
+++ b/lldb/test/API/functionalities/plugins/python_os_plugin/os_plugin_in_dsym/TestOSIndSYM.py
@@ -41,7 +41,7 @@ def port_not_available(self):
return "{} not available".format(self.PORT)
return None
- @requireDarwin
+ @requireDarwin()
@skip(bugnumber="github.com/llvm/llvm-project/issues/213380")
def test_python_os_plugin(self):
"""Test that the OS plugin in a dSYM works on attach."""
diff --git a/lldb/test/API/functionalities/plugins/python_os_plugin/stepping_plugin_threads/TestOSPluginStepping.py b/lldb/test/API/functionalities/plugins/python_os_plugin/stepping_plugin_threads/TestOSPluginStepping.py
index dbebcd793535a..68199ee2fc528 100644
--- a/lldb/test/API/functionalities/plugins/python_os_plugin/stepping_plugin_threads/TestOSPluginStepping.py
+++ b/lldb/test/API/functionalities/plugins/python_os_plugin/stepping_plugin_threads/TestOSPluginStepping.py
@@ -10,7 +10,7 @@
import lldbsuite.test.lldbutil as lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class TestOSPluginStepping(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/functionalities/process_crash_info/TestProcessCrashInfo.py b/lldb/test/API/functionalities/process_crash_info/TestProcessCrashInfo.py
index acd299f4e179b..fe182aba14fab 100644
--- a/lldb/test/API/functionalities/process_crash_info/TestProcessCrashInfo.py
+++ b/lldb/test/API/functionalities/process_crash_info/TestProcessCrashInfo.py
@@ -33,7 +33,7 @@ def containsLibmallocError(self, output):
return False
@skipIfAsan # The test process intentionally double-frees.
- @requireDarwin
+ @requireDarwin()
def test_cli(self):
"""Test that `process status --verbose` fetches the extended crash
information dictionary from the command-line properly."""
@@ -53,7 +53,7 @@ def test_cli(self):
self.assertTrue(self.containsLibmallocError(result.GetOutput()))
@skipIfAsan # The test process intentionally hits a memory bug.
- @requireDarwin
+ @requireDarwin()
def test_api(self):
"""Test that lldb can fetch a crashed process' extended crash information
dictionary from the api properly."""
diff --git a/lldb/test/API/functionalities/process_group/TestChangeProcessGroup.py b/lldb/test/API/functionalities/process_group/TestChangeProcessGroup.py
index 2b5768e217c2a..3942bdedd933e 100644
--- a/lldb/test/API/functionalities/process_group/TestChangeProcessGroup.py
+++ b/lldb/test/API/functionalities/process_group/TestChangeProcessGroup.py
@@ -19,7 +19,7 @@ def setUp(self):
self.line = line_number("main.c", "// Set breakpoint here")
@skipIfFreeBSD # Times out on FreeBSD llvm.org/pr23731
- @requirePOSIX # setpgid call does not exist on Windows
+ @requirePOSIX("setpgid call does not exist on Windows")
@expectedFailureAndroid("http://llvm.org/pr23762", api_levels=[16])
@expectedFailureNetBSD
@skipIftvOS # fork not available on tvOS.
diff --git a/lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py b/lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py
index f44e6f4c8cc71..6f219e2fba2f2 100644
--- a/lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py
+++ b/lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class ProcessSaveCoreMinidumpTestCase(TestBase):
def verify_core_file(
self,
diff --git a/lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump64b.py b/lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump64b.py
index 22cc578d2d6ce..0fc4c9eba52fa 100644
--- a/lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump64b.py
+++ b/lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump64b.py
@@ -10,7 +10,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class ProcessSaveCoreMinidump64bTestCase(TestBase):
def verify_minidump(
self,
diff --git a/lldb/test/API/functionalities/ptr_refs/TestPtrRefs.py b/lldb/test/API/functionalities/ptr_refs/TestPtrRefs.py
index 11fac32ae51a6..1a7283f460b05 100644
--- a/lldb/test/API/functionalities/ptr_refs/TestPtrRefs.py
+++ b/lldb/test/API/functionalities/ptr_refs/TestPtrRefs.py
@@ -12,7 +12,7 @@
class TestPtrRefs(TestBase):
@skipIfAsan # The output looks different under ASAN.
@skipIfMTE # Heap scanning reads tagged memory with untagged pointers.
- @requireDarwin
+ @requireDarwin()
def test_ptr_refs(self):
"""Test format string functionality."""
self.build()
diff --git a/lldb/test/API/functionalities/rerun_and_expr/TestRerunAndExpr.py b/lldb/test/API/functionalities/rerun_and_expr/TestRerunAndExpr.py
index 69e697fcaafe0..a47e257a250f0 100644
--- a/lldb/test/API/functionalities/rerun_and_expr/TestRerunAndExpr.py
+++ b/lldb/test/API/functionalities/rerun_and_expr/TestRerunAndExpr.py
@@ -10,7 +10,7 @@
from lldbsuite.test.decorators import *
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestRerunExpr(TestBase):
SHARED_BUILD_TESTCASE = False
diff --git a/lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py b/lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py
index e3fa56d1403dd..5910d6a4d5d98 100644
--- a/lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py
+++ b/lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py
@@ -28,7 +28,7 @@ def isUbuntu18_04():
return None
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestRerunExprDylib(TestBase):
SHARED_BUILD_TESTCASE = False
diff --git a/lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py b/lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
index a053475900f42..d6641ab92d294 100644
--- a/lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
+++ b/lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
@@ -13,7 +13,7 @@
import dummy_scripted_process
- at requireThreadSupport
+ at requireThreadSupport()
class ScriptedProcesTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
@@ -112,7 +112,7 @@ def cleanup():
log,
)
- @requireDarwin
+ @requireDarwin()
def test_invalid_scripted_register_context(self):
"""Test that we can launch an lldb scripted process with an invalid
Scripted Thread, with invalid register context."""
diff --git a/lldb/test/API/functionalities/signal/TestSendSignal.py b/lldb/test/API/functionalities/signal/TestSendSignal.py
index b8623076b2ce0..f637e334f9512 100644
--- a/lldb/test/API/functionalities/signal/TestSendSignal.py
+++ b/lldb/test/API/functionalities/signal/TestSendSignal.py
@@ -7,7 +7,7 @@
from lldbsuite.test import lldbutil
- at requireSignals
+ at requireSignals()
class SendSignalTestCase(TestBase):
def setUp(self):
# Call super's setUp().
@@ -16,7 +16,7 @@ def setUp(self):
self.line = line_number("main.c", "Put breakpoint here")
@expectedFailureNetBSD(bugnumber="llvm.org/pr43959")
- @requirePOSIX # Windows does not support signals
+ @requirePOSIX("Windows does not support signals")
def test_with_run_command(self):
"""Test that lldb command 'process signal SIGUSR1' sends a signal to the inferior process."""
self.build()
diff --git a/lldb/test/API/functionalities/signal/handle-abrt/TestHandleAbort.py b/lldb/test/API/functionalities/signal/handle-abrt/TestHandleAbort.py
index d3350c04dad54..e3060e414c562 100644
--- a/lldb/test/API/functionalities/signal/handle-abrt/TestHandleAbort.py
+++ b/lldb/test/API/functionalities/signal/handle-abrt/TestHandleAbort.py
@@ -7,7 +7,7 @@
from lldbsuite.test import lldbutil
- at requireSignals
+ at requireSignals()
class HandleAbortTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/functionalities/signal/handle-segv/TestHandleSegv.py b/lldb/test/API/functionalities/signal/handle-segv/TestHandleSegv.py
index 18e41b74f86b7..386aa54b7451b 100644
--- a/lldb/test/API/functionalities/signal/handle-segv/TestHandleSegv.py
+++ b/lldb/test/API/functionalities/signal/handle-segv/TestHandleSegv.py
@@ -7,7 +7,7 @@
from lldbsuite.test import lldbutil
- at requireSignals
+ at requireSignals()
class HandleSegvTestCase(TestBase):
@skipIfDarwin
@expectedFailureNetBSD
diff --git a/lldb/test/API/functionalities/signal/raise/TestRaise.py b/lldb/test/API/functionalities/signal/raise/TestRaise.py
index e19f262aa6f31..e6e8e26eb27c1 100644
--- a/lldb/test/API/functionalities/signal/raise/TestRaise.py
+++ b/lldb/test/API/functionalities/signal/raise/TestRaise.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireSignals
+ at requireSignals()
class RaiseTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/functionalities/single-thread-step/TestSingleThreadStepTimeout.py b/lldb/test/API/functionalities/single-thread-step/TestSingleThreadStepTimeout.py
index 287e2abc6cb7b..5082a18a322ed 100644
--- a/lldb/test/API/functionalities/single-thread-step/TestSingleThreadStepTimeout.py
+++ b/lldb/test/API/functionalities/single-thread-step/TestSingleThreadStepTimeout.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class SingleThreadStepTimeoutTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/functionalities/thread/break_after_join/TestBreakAfterJoin.py b/lldb/test/API/functionalities/thread/break_after_join/TestBreakAfterJoin.py
index 897ec8eae8cf5..79698728b116a 100644
--- a/lldb/test/API/functionalities/thread/break_after_join/TestBreakAfterJoin.py
+++ b/lldb/test/API/functionalities/thread/break_after_join/TestBreakAfterJoin.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class BreakpointAfterJoinTestCase(TestBase):
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentBatchedBreakpointStepOver.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentBatchedBreakpointStepOver.py
index 15adb8d1820ec..d4e2924bee098 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentBatchedBreakpointStepOver.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentBatchedBreakpointStepOver.py
@@ -12,7 +12,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentBatchedBreakpointStepOver(ConcurrentEventsBase):
@skipIf(triple="^mips")
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentBreakpointDelayBreakpointOneSignal.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentBreakpointDelayBreakpointOneSignal.py
index 5d0a8b12fa728..7b2b38f2faacf 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentBreakpointDelayBreakpointOneSignal.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentBreakpointDelayBreakpointOneSignal.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentBreakpointDelayBreakpointOneSignal(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentBreakpointOneDelayBreakpointThreads.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentBreakpointOneDelayBreakpointThreads.py
index 993a7814c8a85..7cd45150cc386 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentBreakpointOneDelayBreakpointThreads.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentBreakpointOneDelayBreakpointThreads.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentBreakpointOneDelayBreakpointThreads(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentBreakpointsDelayedBreakpointOneWatchpoint.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentBreakpointsDelayedBreakpointOneWatchpoint.py
index 41e586462a0e9..79c919d5c5bb0 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentBreakpointsDelayedBreakpointOneWatchpoint.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentBreakpointsDelayedBreakpointOneWatchpoint.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentBreakpointsDelayedBreakpointOneWatchpoint(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentCrashWithBreak.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentCrashWithBreak.py
index f17d485191c34..56e0de1498ea3 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentCrashWithBreak.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentCrashWithBreak.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentCrashWithBreak(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentCrashWithSignal.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentCrashWithSignal.py
index 20f2e3876ccf9..777a1b0529768 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentCrashWithSignal.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentCrashWithSignal.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentCrashWithSignal(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentCrashWithWatchpoint.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentCrashWithWatchpoint.py
index 1c52d3dad5332..20aef12137141 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentCrashWithWatchpoint.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentCrashWithWatchpoint.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentCrashWithWatchpoint(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentCrashWithWatchpointBreakpointSignal.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentCrashWithWatchpointBreakpointSignal.py
index da1b6a98cb971..fcebdfe00d872 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentCrashWithWatchpointBreakpointSignal.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentCrashWithWatchpointBreakpointSignal.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentCrashWithWatchpointBreakpointSignal(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelaySignalBreak.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelaySignalBreak.py
index 420896d8ad606..35f5bec12dbf1 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelaySignalBreak.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelaySignalBreak.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentDelaySignalBreak(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelaySignalWatch.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelaySignalWatch.py
index 9953d975905d1..0327e7f9d216c 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelaySignalWatch.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelaySignalWatch.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentDelaySignalWatch(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelayWatchBreak.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelayWatchBreak.py
index 01fb26e6e1847..f521d882f208c 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelayWatchBreak.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelayWatchBreak.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentDelayWatchBreak(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelayedCrashWithBreakpointSignal.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelayedCrashWithBreakpointSignal.py
index 25c0b9b3d2fca..bcccc53573876 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelayedCrashWithBreakpointSignal.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelayedCrashWithBreakpointSignal.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentDelayedCrashWithBreakpointSignal(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelayedCrashWithBreakpointWatchpoint.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelayedCrashWithBreakpointWatchpoint.py
index ecf3b431448c1..be8bc04a301c1 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelayedCrashWithBreakpointWatchpoint.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentDelayedCrashWithBreakpointWatchpoint.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentDelayedCrashWithBreakpointWatchpoint(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentManyBreakpoints.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentManyBreakpoints.py
index 976b781966218..da0ef0708c030 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentManyBreakpoints.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentManyBreakpoints.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentManyBreakpoints(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentManyCrash.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentManyCrash.py
index 2eba8919499c9..4f3a8d0e12749 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentManyCrash.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentManyCrash.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentManyCrash(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentManySignals.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentManySignals.py
index 1ef1d06da4093..7eb773a47b157 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentManySignals.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentManySignals.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentManySignals(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentManyWatchpoints.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentManyWatchpoints.py
index b45e5705fc436..64329c8e34259 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentManyWatchpoints.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentManyWatchpoints.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentManyWatchpoints(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentNWatchNBreak.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentNWatchNBreak.py
index 7f70e45484d10..74fc7df553887 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentNWatchNBreak.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentNWatchNBreak.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentNWatchNBreak(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalBreak.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalBreak.py
index a546f93de5c55..517172bbf2166 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalBreak.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalBreak.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentSignalBreak(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalDelayBreak.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalDelayBreak.py
index f364bad4d5e2f..d31174d690144 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalDelayBreak.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalDelayBreak.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentSignalDelayBreak(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalDelayWatch.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalDelayWatch.py
index b40cf190dcfe3..44ca319b46d79 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalDelayWatch.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalDelayWatch.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentSignalDelayWatch(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalNWatchNBreak.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalNWatchNBreak.py
index d36ec57fdea56..5e22a90ea4446 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalNWatchNBreak.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalNWatchNBreak.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentSignalNWatchNBreak(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalWatch.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalWatch.py
index ba749b805ce7b..1e6e3e341b09a 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalWatch.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalWatch.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentSignalWatch(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalWatchBreak.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalWatchBreak.py
index b09387ea8e346..1df6c97b02b58 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalWatchBreak.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentSignalWatchBreak.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentSignalWatchBreak(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointThreads.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointThreads.py
index 6cd597645cf10..a5838d29cfccd 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointThreads.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointThreads.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentTwoBreakpointThreads(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointsOneDelaySignal.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointsOneDelaySignal.py
index 0f3466ce72687..3967f616d7d3c 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointsOneDelaySignal.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointsOneDelaySignal.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentTwoBreakpointsOneDelaySignal(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointsOneSignal.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointsOneSignal.py
index 479304e4cf94f..fda5fceab17fa 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointsOneSignal.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointsOneSignal.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentTwoBreakpointsOneSignal(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointsOneWatchpoint.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointsOneWatchpoint.py
index 08c4bde7cf685..01ad52bcc89e5 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointsOneWatchpoint.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointsOneWatchpoint.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentTwoBreakpointsOneWatchpoint(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoWatchpointThreads.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoWatchpointThreads.py
index 1d2e37395aa66..de0020a706e45 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoWatchpointThreads.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoWatchpointThreads.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentTwoWatchpointThreads(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoWatchpointsOneBreakpoint.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoWatchpointsOneBreakpoint.py
index ea82a31f0b9f4..fb7a6898aa966 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoWatchpointsOneBreakpoint.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoWatchpointsOneBreakpoint.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentTwoWatchpointsOneBreakpoint(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoWatchpointsOneDelayBreakpoint.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoWatchpointsOneDelayBreakpoint.py
index 6ce092e91ced5..b1b3808cdc7c6 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoWatchpointsOneDelayBreakpoint.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoWatchpointsOneDelayBreakpoint.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentTwoWatchpointsOneDelayBreakpoint(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoWatchpointsOneSignal.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoWatchpointsOneSignal.py
index 8f07f04cdd14a..05250be5725f1 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoWatchpointsOneSignal.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoWatchpointsOneSignal.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentTwoWatchpointsOneSignal(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentWatchBreak.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentWatchBreak.py
index 884ebc4fe5540..19a9561c73432 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentWatchBreak.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentWatchBreak.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentWatchBreak(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentWatchBreakDelay.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentWatchBreakDelay.py
index 5e8d52f7c1e3b..695ac3b158196 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentWatchBreakDelay.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentWatchBreakDelay.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentWatchBreakDelay(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentWatchpointDelayWatchpointOneBreakpoint.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentWatchpointDelayWatchpointOneBreakpoint.py
index ccf8b94bcefe4..9182f3eb3bfc0 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentWatchpointDelayWatchpointOneBreakpoint.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentWatchpointDelayWatchpointOneBreakpoint.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentWatchpointDelayWatchpointOneBreakpoint(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentWatchpointWithDelayWatchpointThreads.py b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentWatchpointWithDelayWatchpointThreads.py
index 977b8890a1213..a0216e26923d4 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentWatchpointWithDelayWatchpointThreads.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentWatchpointWithDelayWatchpointThreads.py
@@ -3,7 +3,7 @@
from lldbsuite.test.lldbtest import TestBase
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfWindows
class ConcurrentWatchpointWithDelayWatchpointThreads(ConcurrentEventsBase):
# Atomic sequences are not supported yet for MIPS in LLDB.
diff --git a/lldb/test/API/functionalities/thread/concurrent_events/exit/TestConcurrentThreadExit.py b/lldb/test/API/functionalities/thread/concurrent_events/exit/TestConcurrentThreadExit.py
index 1ed0023d57fd6..c665e40cf8b62 100644
--- a/lldb/test/API/functionalities/thread/concurrent_events/exit/TestConcurrentThreadExit.py
+++ b/lldb/test/API/functionalities/thread/concurrent_events/exit/TestConcurrentThreadExit.py
@@ -9,7 +9,7 @@
import lldbsuite.test.lldbutil as lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class ConcurrentThreadExitTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/functionalities/thread/create_after_attach/TestCreateAfterAttach.py b/lldb/test/API/functionalities/thread/create_after_attach/TestCreateAfterAttach.py
index 3cc9ad197f4f4..d2fd9b03c3ceb 100644
--- a/lldb/test/API/functionalities/thread/create_after_attach/TestCreateAfterAttach.py
+++ b/lldb/test/API/functionalities/thread/create_after_attach/TestCreateAfterAttach.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class CreateAfterAttachTestCase(TestBase):
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/API/functionalities/thread/create_during_step/TestCreateDuringStep.py b/lldb/test/API/functionalities/thread/create_during_step/TestCreateDuringStep.py
index f2853483d1afb..1c69bf2ca4632 100644
--- a/lldb/test/API/functionalities/thread/create_during_step/TestCreateDuringStep.py
+++ b/lldb/test/API/functionalities/thread/create_during_step/TestCreateDuringStep.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class CreateDuringStepTestCase(TestBase):
@expectedFailureAll(
oslist=["linux"],
diff --git a/lldb/test/API/functionalities/thread/exit_during_break/TestExitDuringBreak.py b/lldb/test/API/functionalities/thread/exit_during_break/TestExitDuringBreak.py
index f9947abb65457..08078f71b7b2c 100644
--- a/lldb/test/API/functionalities/thread/exit_during_break/TestExitDuringBreak.py
+++ b/lldb/test/API/functionalities/thread/exit_during_break/TestExitDuringBreak.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class ExitDuringBreakpointTestCase(TestBase):
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/API/functionalities/thread/exit_during_expression/TestExitDuringExpression.py b/lldb/test/API/functionalities/thread/exit_during_expression/TestExitDuringExpression.py
index 7a7023e725251..fae9d38d6aed3 100644
--- a/lldb/test/API/functionalities/thread/exit_during_expression/TestExitDuringExpression.py
+++ b/lldb/test/API/functionalities/thread/exit_during_expression/TestExitDuringExpression.py
@@ -9,7 +9,7 @@
from lldbsuite.test.lldbtest import *
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfAsan
class TestExitDuringExpression(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/functionalities/thread/exit_during_step/TestExitDuringStep.py b/lldb/test/API/functionalities/thread/exit_during_step/TestExitDuringStep.py
index 28fa3c7cfcd07..fa913a0f4321a 100644
--- a/lldb/test/API/functionalities/thread/exit_during_step/TestExitDuringStep.py
+++ b/lldb/test/API/functionalities/thread/exit_during_step/TestExitDuringStep.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class ExitDuringStepTestCase(TestBase):
@skipIfWindows # This is flakey on Windows: llvm.org/pr38373
def test(self):
diff --git a/lldb/test/API/functionalities/thread/ignore_suspended/TestIgnoreSuspendedThread.py b/lldb/test/API/functionalities/thread/ignore_suspended/TestIgnoreSuspendedThread.py
index 4060d8ae4fcb5..a3361581ea59b 100644
--- a/lldb/test/API/functionalities/thread/ignore_suspended/TestIgnoreSuspendedThread.py
+++ b/lldb/test/API/functionalities/thread/ignore_suspended/TestIgnoreSuspendedThread.py
@@ -8,7 +8,7 @@
import lldbsuite.test.lldbutil as lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class IgnoreSuspendedThreadTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/functionalities/thread/main_thread_exit/TestMainThreadExit.py b/lldb/test/API/functionalities/thread/main_thread_exit/TestMainThreadExit.py
index d80127aa247e3..1e2e2c2132279 100644
--- a/lldb/test/API/functionalities/thread/main_thread_exit/TestMainThreadExit.py
+++ b/lldb/test/API/functionalities/thread/main_thread_exit/TestMainThreadExit.py
@@ -9,7 +9,7 @@
import lldbsuite.test.lldbutil as lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class ThreadExitTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/functionalities/thread/multi_break/TestMultipleBreakpoints.py b/lldb/test/API/functionalities/thread/multi_break/TestMultipleBreakpoints.py
index d98c6d63ddc9c..a8037a9f2f46f 100644
--- a/lldb/test/API/functionalities/thread/multi_break/TestMultipleBreakpoints.py
+++ b/lldb/test/API/functionalities/thread/multi_break/TestMultipleBreakpoints.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class MultipleBreakpointTestCase(TestBase):
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py b/lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py
index e6a8647f6b9cf..b757cb051dc8c 100644
--- a/lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py
+++ b/lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py
@@ -9,7 +9,7 @@
import lldbsuite.test.lldbutil as lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class NumberOfThreadsTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/functionalities/thread/state_after_expression/TestStateAfterExpression.py b/lldb/test/API/functionalities/thread/state_after_expression/TestStateAfterExpression.py
index f07be951c1560..390a3f1deb0e2 100644
--- a/lldb/test/API/functionalities/thread/state_after_expression/TestStateAfterExpression.py
+++ b/lldb/test/API/functionalities/thread/state_after_expression/TestStateAfterExpression.py
@@ -10,7 +10,7 @@
from lldbsuite.test.decorators import *
- at requireThreadSupport
+ at requireThreadSupport()
class TestStopReasonAfterExpression(TestBase):
@skipIfWindows
@expectedFailureAll(oslist=["freebsd"], bugnumber="llvm.org/pr48415")
diff --git a/lldb/test/API/functionalities/thread/step_out/TestThreadStepOut.py b/lldb/test/API/functionalities/thread/step_out/TestThreadStepOut.py
index a7e7b43a398c5..9c0cac1821b98 100644
--- a/lldb/test/API/functionalities/thread/step_out/TestThreadStepOut.py
+++ b/lldb/test/API/functionalities/thread/step_out/TestThreadStepOut.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class ThreadStepOutTestCase(TestBase):
@skipIfWindows # This test will hang on windows llvm.org/pr21753
@expectedFailureAll(oslist=["windows"])
diff --git a/lldb/test/API/functionalities/thread/thread_exit/TestThreadExit.py b/lldb/test/API/functionalities/thread/thread_exit/TestThreadExit.py
index f1ab48d160495..143f592d8324f 100644
--- a/lldb/test/API/functionalities/thread/thread_exit/TestThreadExit.py
+++ b/lldb/test/API/functionalities/thread/thread_exit/TestThreadExit.py
@@ -9,7 +9,7 @@
import lldbsuite.test.lldbutil as lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class ThreadExitTestCase(TestBase):
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/API/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py b/lldb/test/API/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py
index 0e0d5ebd6441d..63e954f8f7b4c 100644
--- a/lldb/test/API/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py
+++ b/lldb/test/API/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py
@@ -23,7 +23,7 @@ def set_thread_name(test, thread, breakpoint):
breakpoint.SetThreadName("main-thread")
- at requireThreadSupport
+ at requireThreadSupport()
class ThreadSpecificBreakTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/functionalities/thread/thread_specific_break_plus_condition/TestThreadSpecificBpPlusCondition.py b/lldb/test/API/functionalities/thread/thread_specific_break_plus_condition/TestThreadSpecificBpPlusCondition.py
index 1e105ab66b4c2..44287ddd1011b 100644
--- a/lldb/test/API/functionalities/thread/thread_specific_break_plus_condition/TestThreadSpecificBpPlusCondition.py
+++ b/lldb/test/API/functionalities/thread/thread_specific_break_plus_condition/TestThreadSpecificBpPlusCondition.py
@@ -10,7 +10,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class ThreadSpecificBreakPlusConditionTestCase(TestBase):
# test frequently times out or hangs
@skipIfDarwin
diff --git a/lldb/test/API/functionalities/type_lookup/TestTypeLookup.py b/lldb/test/API/functionalities/type_lookup/TestTypeLookup.py
index 0234c79c70b5d..cc8ef9608c0e7 100644
--- a/lldb/test/API/functionalities/type_lookup/TestTypeLookup.py
+++ b/lldb/test/API/functionalities/type_lookup/TestTypeLookup.py
@@ -16,7 +16,7 @@ def setUp(self):
# Find the line number to break at.
self.line = line_number("main.mm", "// break here")
- @requireDarwin
+ @requireDarwin()
@skipIf(archs=["i386"])
def test_type_lookup(self):
"""Test type lookup command."""
diff --git a/lldb/test/API/iohandler/sigint/TestIOHandlerPythonREPLSigint.py b/lldb/test/API/iohandler/sigint/TestIOHandlerPythonREPLSigint.py
index e7e7534b40c02..014d778495dd1 100644
--- a/lldb/test/API/iohandler/sigint/TestIOHandlerPythonREPLSigint.py
+++ b/lldb/test/API/iohandler/sigint/TestIOHandlerPythonREPLSigint.py
@@ -22,7 +22,7 @@ def start_python_repl(self):
# PExpect uses many timeouts internally and doesn't play well
# under ASAN on a loaded machine..
@skipIfAsan
- @requirePOSIX
+ @requirePOSIX()
@skipIf(oslist=["linux"], archs=["arm$", "aarch64"])
def test_while_evaluating_code(self):
"""Tests SIGINT handling while Python code is being evaluated."""
@@ -56,7 +56,7 @@ def test_while_evaluating_code(self):
# FIXME: On Linux the Python code that reads from stdin seems to block until
# it has finished reading a line before handling any queued signals.
@skipIf(hostoslist=["linux"])
- @requirePOSIX
+ @requirePOSIX()
def test_while_waiting_on_input(self):
"""Tests SIGINT handling while the REPL is waiting on input from
stdin."""
diff --git a/lldb/test/API/iohandler/sigint/TestProcessIOHandlerInterrupt.py b/lldb/test/API/iohandler/sigint/TestProcessIOHandlerInterrupt.py
index 149a759c5d4e1..5cf258d4b4a8e 100644
--- a/lldb/test/API/iohandler/sigint/TestProcessIOHandlerInterrupt.py
+++ b/lldb/test/API/iohandler/sigint/TestProcessIOHandlerInterrupt.py
@@ -10,7 +10,7 @@
from lldbsuite.test.lldbpexpect import PExpectTest
- at requireSignals # no signal support
+ at requireSignals("sends SIGINT to the inferior")
class TestCase(PExpectTest):
SHARED_BUILD_TESTCASE = False
diff --git a/lldb/test/API/lang/c/anonymous/TestAnonymous.py b/lldb/test/API/lang/c/anonymous/TestAnonymous.py
index 5f3089983bb1b..a0a85afec06d2 100644
--- a/lldb/test/API/lang/c/anonymous/TestAnonymous.py
+++ b/lldb/test/API/lang/c/anonymous/TestAnonymous.py
@@ -74,7 +74,7 @@ def test_expr_parent(self):
substrs=["(type_y) $", "dummy = 2"],
)
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test_expr_null(self):
self.build()
self.common_setup(self.line2)
diff --git a/lldb/test/API/lang/c/blocks/TestBlocks.py b/lldb/test/API/lang/c/blocks/TestBlocks.py
index ba443e6661261..ace20cdc8cd2e 100644
--- a/lldb/test/API/lang/c/blocks/TestBlocks.py
+++ b/lldb/test/API/lang/c/blocks/TestBlocks.py
@@ -6,9 +6,9 @@
import lldbsuite.test.lldbutil as lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class BlocksTestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
def test(self):
self.build()
src = lldb.SBFileSpec("main.c")
@@ -52,7 +52,7 @@ def test(self):
self.expect_expr("*captured_ptr", result_type="int", result_value="42")
self.expect_expr("captured_struct.x", result_type="int", result_value="10")
- @requireDarwin
+ @requireDarwin()
def test_define(self):
"""Test defining and calling a block from the expression evaluator."""
self.build()
diff --git a/lldb/test/API/lang/c/calling-conventions/TestCCallingConventions.py b/lldb/test/API/lang/c/calling-conventions/TestCCallingConventions.py
index 5885ed0e832f0..d93b0ad9c0e10 100644
--- a/lldb/test/API/lang/c/calling-conventions/TestCCallingConventions.py
+++ b/lldb/test/API/lang/c/calling-conventions/TestCCallingConventions.py
@@ -87,7 +87,7 @@ def test_pascal(self):
return
self.expect_expr("func(1, 2, 3, 4)", result_type="int", result_value="10")
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test_sysv_abi(self):
if not self.build_and_run("sysv_abi.c"):
return
diff --git a/lldb/test/API/lang/c/enum_types/TestEnumTypes.py b/lldb/test/API/lang/c/enum_types/TestEnumTypes.py
index 225f3b876e3e5..289172e8c584c 100644
--- a/lldb/test/API/lang/c/enum_types/TestEnumTypes.py
+++ b/lldb/test/API/lang/c/enum_types/TestEnumTypes.py
@@ -14,7 +14,7 @@ def setUp(self):
# Find the line number to break inside main().
self.line = line_number("main.c", "// Set break point at this line.")
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test_command_line(self):
"""Test 'image lookup -t enum_test_days' and check for correct display and enum value printing."""
self.build()
diff --git a/lldb/test/API/lang/c/fpeval/TestFPEval.py b/lldb/test/API/lang/c/fpeval/TestFPEval.py
index 0a953d2d66bf2..a449ab467f507 100644
--- a/lldb/test/API/lang/c/fpeval/TestFPEval.py
+++ b/lldb/test/API/lang/c/fpeval/TestFPEval.py
@@ -6,7 +6,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class FPEvalTestCase(TestBase):
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/API/lang/c/full_lto_stepping/TestFullLtoStepping.py b/lldb/test/API/lang/c/full_lto_stepping/TestFullLtoStepping.py
index 24d0105895021..32e90f42001b9 100644
--- a/lldb/test/API/lang/c/full_lto_stepping/TestFullLtoStepping.py
+++ b/lldb/test/API/lang/c/full_lto_stepping/TestFullLtoStepping.py
@@ -11,7 +11,7 @@ class TestFullLtoStepping(TestBase):
@skipIfAsan
@skipIf(compiler=no_match("clang"))
@skipIf(compiler="clang", compiler_version=["<", "13.0"])
- @requireDarwin
+ @requireDarwin()
def test(self):
self.build()
_, _, thread, _ = lldbutil.run_to_name_breakpoint(self, "main")
diff --git a/lldb/test/API/lang/c/function_types/TestFunctionTypes.py b/lldb/test/API/lang/c/function_types/TestFunctionTypes.py
index c3b91beed55f4..706ccff8a9fca 100644
--- a/lldb/test/API/lang/c/function_types/TestFunctionTypes.py
+++ b/lldb/test/API/lang/c/function_types/TestFunctionTypes.py
@@ -7,7 +7,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class FunctionTypesTestCase(TestBase):
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/API/lang/c/libc_calls/TestLibcCalls.py b/lldb/test/API/lang/c/libc_calls/TestLibcCalls.py
index feece227b9592..c268e261fcbf8 100644
--- a/lldb/test/API/lang/c/libc_calls/TestLibcCalls.py
+++ b/lldb/test/API/lang/c/libc_calls/TestLibcCalls.py
@@ -15,7 +15,7 @@
class LibcCallsTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
@skipIfRemote
def test_libc_funcs_do_not_resolve_to_dyld(self):
"""The JIT-resolved address of each libc function must not lie in
@@ -54,7 +54,7 @@ def test_libc_funcs_do_not_resolve_to_dyld(self):
resolved_module_name, "dyld", f"Called dyld version of {symbol}"
)
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test_libc_calls_succeed(self):
"""Calling memset/memcpy/memmove/memcmp from expressions must
execute without trapping."""
diff --git a/lldb/test/API/lang/c/modules/TestCModules.py b/lldb/test/API/lang/c/modules/TestCModules.py
index c223a5fc927df..bf3496784712b 100644
--- a/lldb/test/API/lang/c/modules/TestCModules.py
+++ b/lldb/test/API/lang/c/modules/TestCModules.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class CModulesTestCase(TestBase):
@expectedFailureAll(
oslist=["freebsd", "linux"],
diff --git a/lldb/test/API/lang/c/sizeof/TestCSizeof.py b/lldb/test/API/lang/c/sizeof/TestCSizeof.py
index 9b15c19f8dcf3..47879fea5e9ef 100644
--- a/lldb/test/API/lang/c/sizeof/TestCSizeof.py
+++ b/lldb/test/API/lang/c/sizeof/TestCSizeof.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
def test(self):
self.build()
diff --git a/lldb/test/API/lang/c/step_over_no_deadlock/TestStepOverDoesntBlock.py b/lldb/test/API/lang/c/step_over_no_deadlock/TestStepOverDoesntBlock.py
index 2e0f8dcc041c2..2b3ab31f3ab63 100644
--- a/lldb/test/API/lang/c/step_over_no_deadlock/TestStepOverDoesntBlock.py
+++ b/lldb/test/API/lang/c/step_over_no_deadlock/TestStepOverDoesntBlock.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class StepOverDoesntDeadlockTestCase(TestBase):
def test_step_over(self):
"""Test that when step over steps over a function it lets other threads run."""
diff --git a/lldb/test/API/lang/c/strings/TestCStrings.py b/lldb/test/API/lang/c/strings/TestCStrings.py
index 1198689c6b981..245f71a87a91a 100644
--- a/lldb/test/API/lang/c/strings/TestCStrings.py
+++ b/lldb/test/API/lang/c/strings/TestCStrings.py
@@ -7,7 +7,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class CStringsTestCase(TestBase):
def test_with_run_command(self):
"""Tests that C strings work as expected in expressions"""
diff --git a/lldb/test/API/lang/c/struct_types/TestStructTypes.py b/lldb/test/API/lang/c/struct_types/TestStructTypes.py
index f0b5ba278f79f..1da64a72e9cba 100644
--- a/lldb/test/API/lang/c/struct_types/TestStructTypes.py
+++ b/lldb/test/API/lang/c/struct_types/TestStructTypes.py
@@ -1,4 +1,6 @@
from lldbsuite.test import lldbinline
from lldbsuite.test import decorators
-lldbinline.MakeInlineTest(__file__, globals(), [decorators.requireExpressionEvaluation])
+lldbinline.MakeInlineTest(
+ __file__, globals(), [decorators.requireExpressionEvaluation()]
+)
diff --git a/lldb/test/API/lang/c/tls_globals/TestTlsGlobals.py b/lldb/test/API/lang/c/tls_globals/TestTlsGlobals.py
index a7f117e1749a6..bb0ea42930f08 100644
--- a/lldb/test/API/lang/c/tls_globals/TestTlsGlobals.py
+++ b/lldb/test/API/lang/c/tls_globals/TestTlsGlobals.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfTargetDoesNotSupportSharedLibraries()
class TlsGlobalTestCase(TestBase):
def setUp(self):
diff --git a/lldb/test/API/lang/cpp/abi_tag_structors/TestAbiTagStructors.py b/lldb/test/API/lang/cpp/abi_tag_structors/TestAbiTagStructors.py
index d58b0ea543847..63e8f612dbf8d 100644
--- a/lldb/test/API/lang/cpp/abi_tag_structors/TestAbiTagStructors.py
+++ b/lldb/test/API/lang/cpp/abi_tag_structors/TestAbiTagStructors.py
@@ -17,9 +17,9 @@ class AbiTagStructorsTestCase(TestBase):
compiler_version=["<", "22"],
bugnumber="Required Clang flag not supported",
)
- @requireClang
+ @requireClang()
@expectedFailureAll(oslist=["windows"])
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test_with_structor_linkage_names(self):
self.build(dictionary={"CXXFLAGS_EXTRAS": "-gstructor-decl-linkage-names"})
@@ -77,7 +77,7 @@ def test_with_structor_linkage_names(self):
)
@expectedFailureAll(oslist=["windows"])
- @requireClang
+ @requireClang()
def test_no_structor_linkage_names(self):
"""
Test that without linkage names on structor declarations we can't call
@@ -127,14 +127,14 @@ def do_nested_structor_test(self):
@skipIf(compiler="clang", compiler_version=["<", "22"])
@skipIf(compiler=no_match("clang"))
@expectedFailureAll(oslist=["windows"])
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test_nested_with_structor_linkage_names(self):
self.build(dictionary={"CXXFLAGS_EXTRAS": "-gstructor-decl-linkage-names"})
self.do_nested_structor_test()
- @requireClang
+ @requireClang()
@expectedFailureAll(oslist=["windows"])
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test_nested_no_structor_linkage_names(self):
# In older versions of Clang the -gno-structor-decl-linkage-names
# behaviour was the default.
diff --git a/lldb/test/API/lang/cpp/accelerator-table/TestCPPAccelerator.py b/lldb/test/API/lang/cpp/accelerator-table/TestCPPAccelerator.py
index dc015f1946ed2..212c41773f192 100644
--- a/lldb/test/API/lang/cpp/accelerator-table/TestCPPAccelerator.py
+++ b/lldb/test/API/lang/cpp/accelerator-table/TestCPPAccelerator.py
@@ -5,7 +5,7 @@
class CPPAcceleratorTableTestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
@skipIf(debug_info=no_match(["dwarf"]))
@skipIf(dwarf_version=[">=", "5"])
def test(self):
diff --git a/lldb/test/API/lang/cpp/auto/TestCPPAuto.py b/lldb/test/API/lang/cpp/auto/TestCPPAuto.py
index c02341356e462..20aab4a528911 100644
--- a/lldb/test/API/lang/cpp/auto/TestCPPAuto.py
+++ b/lldb/test/API/lang/cpp/auto/TestCPPAuto.py
@@ -7,7 +7,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class CPPAutoTestCase(TestBase):
def test_with_run_command(self):
"""Test that auto types work in the expression parser"""
diff --git a/lldb/test/API/lang/cpp/call-function/TestCallCPPFunction.py b/lldb/test/API/lang/cpp/call-function/TestCallCPPFunction.py
index 00a2735a40af2..60225e9e11657 100644
--- a/lldb/test/API/lang/cpp/call-function/TestCallCPPFunction.py
+++ b/lldb/test/API/lang/cpp/call-function/TestCallCPPFunction.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class CallCPPFunctionTestCase(TestBase):
def setUp(self):
TestBase.setUp(self)
diff --git a/lldb/test/API/lang/cpp/chained-calls/TestCppChainedCalls.py b/lldb/test/API/lang/cpp/chained-calls/TestCppChainedCalls.py
index 7b81525e9b414..1b329485c5f5c 100644
--- a/lldb/test/API/lang/cpp/chained-calls/TestCppChainedCalls.py
+++ b/lldb/test/API/lang/cpp/chained-calls/TestCppChainedCalls.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCppChainedCalls(TestBase):
def test_with_run_command(self):
self.build()
diff --git a/lldb/test/API/lang/cpp/class-template-parameter-pack/TestClassTemplateParameterPack.py b/lldb/test/API/lang/cpp/class-template-parameter-pack/TestClassTemplateParameterPack.py
index be1c5b54e12c0..952a48db4ffef 100644
--- a/lldb/test/API/lang/cpp/class-template-parameter-pack/TestClassTemplateParameterPack.py
+++ b/lldb/test/API/lang/cpp/class-template-parameter-pack/TestClassTemplateParameterPack.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
def test(self):
self.build()
diff --git a/lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py b/lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py
index 5f4abb1172824..309bd44193c0f 100644
--- a/lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py
+++ b/lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py
@@ -11,7 +11,7 @@
class TestCase(TestBase):
SHARED_BUILD_TESTCASE = False
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test(self):
self.build()
lldbutil.run_to_source_breakpoint(
diff --git a/lldb/test/API/lang/cpp/const_static_integral_member_int128/TestConstStaticIntegralMemberInt128.py b/lldb/test/API/lang/cpp/const_static_integral_member_int128/TestConstStaticIntegralMemberInt128.py
index a9059a9cfd5da..44d3cf8a6bef5 100644
--- a/lldb/test/API/lang/cpp/const_static_integral_member_int128/TestConstStaticIntegralMemberInt128.py
+++ b/lldb/test/API/lang/cpp/const_static_integral_member_int128/TestConstStaticIntegralMemberInt128.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
# int128 is not available on 32-bit ARM.
@skipIf(archs=["arm$"])
diff --git a/lldb/test/API/lang/cpp/constructors/TestCppConstructors.py b/lldb/test/API/lang/cpp/constructors/TestCppConstructors.py
index 8e178de97eea7..fee268cd05aa1 100644
--- a/lldb/test/API/lang/cpp/constructors/TestCppConstructors.py
+++ b/lldb/test/API/lang/cpp/constructors/TestCppConstructors.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
@expectedFailureAll(bugnumber="llvm.org/pr50814", compiler="gcc")
def test_constructors(self):
diff --git a/lldb/test/API/lang/cpp/covariant-return-types/TestCovariantReturnTypes.py b/lldb/test/API/lang/cpp/covariant-return-types/TestCovariantReturnTypes.py
index e1b96f6a10126..50d23fb96fd78 100644
--- a/lldb/test/API/lang/cpp/covariant-return-types/TestCovariantReturnTypes.py
+++ b/lldb/test/API/lang/cpp/covariant-return-types/TestCovariantReturnTypes.py
@@ -4,7 +4,7 @@
import lldbsuite.test.lldbutil as lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/lang/cpp/decl-from-submodule/TestDeclFromSubmodule.py b/lldb/test/API/lang/cpp/decl-from-submodule/TestDeclFromSubmodule.py
index feaf39495def6..2da4a1e182b34 100644
--- a/lldb/test/API/lang/cpp/decl-from-submodule/TestDeclFromSubmodule.py
+++ b/lldb/test/API/lang/cpp/decl-from-submodule/TestDeclFromSubmodule.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class DeclFromSubmoduleTestCase(TestBase):
# Requires DWARF debug info which is not retained when linking with link.exe.
@skipIfWindows
diff --git a/lldb/test/API/lang/cpp/default-template-args/TestDefaultTemplateArgs.py b/lldb/test/API/lang/cpp/default-template-args/TestDefaultTemplateArgs.py
index 8a9dd5288e901..44ae6cb718e7d 100644
--- a/lldb/test/API/lang/cpp/default-template-args/TestDefaultTemplateArgs.py
+++ b/lldb/test/API/lang/cpp/default-template-args/TestDefaultTemplateArgs.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestDefaultTemplateArgs(TestBase):
@no_debug_info_test
def test(self):
diff --git a/lldb/test/API/lang/cpp/enum-limits/TestCPPEnumLimits.py b/lldb/test/API/lang/cpp/enum-limits/TestCPPEnumLimits.py
index a380d6bdcf53d..61c3e75cd7851 100644
--- a/lldb/test/API/lang/cpp/enum-limits/TestCPPEnumLimits.py
+++ b/lldb/test/API/lang/cpp/enum-limits/TestCPPEnumLimits.py
@@ -56,7 +56,7 @@ def test(self):
self.build()
self.check_all(self.dbg.CreateTarget(self.getBuildArtifact("a.out")))
- @requireWindows
+ @requireWindows()
@skipUnlessMSVC
@no_debug_info_test # We only test MSVC
def test_msvc(self):
diff --git a/lldb/test/API/lang/cpp/expression-context-qualifiers/const_method/TestExprInConstMethod.py b/lldb/test/API/lang/cpp/expression-context-qualifiers/const_method/TestExprInConstMethod.py
index fc662f9cdf1f7..b2d3d7b36a90e 100644
--- a/lldb/test/API/lang/cpp/expression-context-qualifiers/const_method/TestExprInConstMethod.py
+++ b/lldb/test/API/lang/cpp/expression-context-qualifiers/const_method/TestExprInConstMethod.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
def test(self):
self.build()
diff --git a/lldb/test/API/lang/cpp/expression-context-qualifiers/const_volatile_method/TestExprInConstVolatileMethod.py b/lldb/test/API/lang/cpp/expression-context-qualifiers/const_volatile_method/TestExprInConstVolatileMethod.py
index 004955cd3b859..74ef95f1aa484 100644
--- a/lldb/test/API/lang/cpp/expression-context-qualifiers/const_volatile_method/TestExprInConstVolatileMethod.py
+++ b/lldb/test/API/lang/cpp/expression-context-qualifiers/const_volatile_method/TestExprInConstVolatileMethod.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
def test(self):
self.build()
diff --git a/lldb/test/API/lang/cpp/expression-context-qualifiers/cv_qualified_objects/TestExprOnCVQualifiedObjects.py b/lldb/test/API/lang/cpp/expression-context-qualifiers/cv_qualified_objects/TestExprOnCVQualifiedObjects.py
index bfd5f7dba8e5f..151ff1183e394 100644
--- a/lldb/test/API/lang/cpp/expression-context-qualifiers/cv_qualified_objects/TestExprOnCVQualifiedObjects.py
+++ b/lldb/test/API/lang/cpp/expression-context-qualifiers/cv_qualified_objects/TestExprOnCVQualifiedObjects.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
def test(self):
self.build()
diff --git a/lldb/test/API/lang/cpp/expression-context-qualifiers/non_const_method/TestExprInNonConstMethod.py b/lldb/test/API/lang/cpp/expression-context-qualifiers/non_const_method/TestExprInNonConstMethod.py
index a4cdffb19e4cb..da5a69080012d 100644
--- a/lldb/test/API/lang/cpp/expression-context-qualifiers/non_const_method/TestExprInNonConstMethod.py
+++ b/lldb/test/API/lang/cpp/expression-context-qualifiers/non_const_method/TestExprInNonConstMethod.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
def test(self):
self.build()
diff --git a/lldb/test/API/lang/cpp/expression-context-qualifiers/template_const_method/TestExprInTemplateConstMethod.py b/lldb/test/API/lang/cpp/expression-context-qualifiers/template_const_method/TestExprInTemplateConstMethod.py
index c20fdd1d34ef9..a26be9e38927c 100644
--- a/lldb/test/API/lang/cpp/expression-context-qualifiers/template_const_method/TestExprInTemplateConstMethod.py
+++ b/lldb/test/API/lang/cpp/expression-context-qualifiers/template_const_method/TestExprInTemplateConstMethod.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
def test(self):
self.build()
diff --git a/lldb/test/API/lang/cpp/expression-context-qualifiers/template_non_const_method/TestExprInTemplateNonConstMethod.py b/lldb/test/API/lang/cpp/expression-context-qualifiers/template_non_const_method/TestExprInTemplateNonConstMethod.py
index 5ce0740247286..7297aa40e9307 100644
--- a/lldb/test/API/lang/cpp/expression-context-qualifiers/template_non_const_method/TestExprInTemplateNonConstMethod.py
+++ b/lldb/test/API/lang/cpp/expression-context-qualifiers/template_non_const_method/TestExprInTemplateNonConstMethod.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
def test(self):
self.build()
diff --git a/lldb/test/API/lang/cpp/forward/TestCPPForwardDeclaration.py b/lldb/test/API/lang/cpp/forward/TestCPPForwardDeclaration.py
index 57eeaa7c494e2..f4a72b51e8379 100644
--- a/lldb/test/API/lang/cpp/forward/TestCPPForwardDeclaration.py
+++ b/lldb/test/API/lang/cpp/forward/TestCPPForwardDeclaration.py
@@ -56,7 +56,7 @@ def test_debug_names(self):
self.do_test(dict(CFLAGS_EXTRAS="-gdwarf-5 -gpubnames"))
@no_debug_info_test
- @requireClang
+ @requireClang()
def test_simple_template_names(self):
"""Test that we are able to find complete types when using DWARF v5
accelerator tables"""
diff --git a/lldb/test/API/lang/cpp/function-call-from-object-file/TestFunctionCallFromObjectFile.py b/lldb/test/API/lang/cpp/function-call-from-object-file/TestFunctionCallFromObjectFile.py
index 92973536889f6..33396655f1b6e 100644
--- a/lldb/test/API/lang/cpp/function-call-from-object-file/TestFunctionCallFromObjectFile.py
+++ b/lldb/test/API/lang/cpp/function-call-from-object-file/TestFunctionCallFromObjectFile.py
@@ -15,7 +15,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestFunctionCallFromObjectFile(TestBase):
def test_lib1(self):
self.build()
diff --git a/lldb/test/API/lang/cpp/function-qualifiers/TestCppFunctionQualifiers.py b/lldb/test/API/lang/cpp/function-qualifiers/TestCppFunctionQualifiers.py
index 3e11b8c533923..1110a5bb00be0 100644
--- a/lldb/test/API/lang/cpp/function-qualifiers/TestCppFunctionQualifiers.py
+++ b/lldb/test/API/lang/cpp/function-qualifiers/TestCppFunctionQualifiers.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestFunctionQualifiers(TestBase):
def test(self):
self.build()
diff --git a/lldb/test/API/lang/cpp/function-ref-qualifiers/TestCppFunctionRefQualifiers.py b/lldb/test/API/lang/cpp/function-ref-qualifiers/TestCppFunctionRefQualifiers.py
index 1ad852adfcad5..ad8278e01bea5 100644
--- a/lldb/test/API/lang/cpp/function-ref-qualifiers/TestCppFunctionRefQualifiers.py
+++ b/lldb/test/API/lang/cpp/function-ref-qualifiers/TestCppFunctionRefQualifiers.py
@@ -10,7 +10,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestFunctionRefQualifiers(TestBase):
def test(self):
self.build()
diff --git a/lldb/test/API/lang/cpp/global_operators/TestCppGlobalOperators.py b/lldb/test/API/lang/cpp/global_operators/TestCppGlobalOperators.py
index 94348fc1745f6..70a6045d162f8 100644
--- a/lldb/test/API/lang/cpp/global_operators/TestCppGlobalOperators.py
+++ b/lldb/test/API/lang/cpp/global_operators/TestCppGlobalOperators.py
@@ -7,7 +7,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCppGlobalOperators(TestBase):
def prepare_executable_and_get_frame(self):
self.build()
diff --git a/lldb/test/API/lang/cpp/llvm-style/TestLLVMStyle.py b/lldb/test/API/lang/cpp/llvm-style/TestLLVMStyle.py
index f0b5ba278f79f..1da64a72e9cba 100644
--- a/lldb/test/API/lang/cpp/llvm-style/TestLLVMStyle.py
+++ b/lldb/test/API/lang/cpp/llvm-style/TestLLVMStyle.py
@@ -1,4 +1,6 @@
from lldbsuite.test import lldbinline
from lldbsuite.test import decorators
-lldbinline.MakeInlineTest(__file__, globals(), [decorators.requireExpressionEvaluation])
+lldbinline.MakeInlineTest(
+ __file__, globals(), [decorators.requireExpressionEvaluation()]
+)
diff --git a/lldb/test/API/lang/cpp/modules-import/TestCXXModulesImport.py b/lldb/test/API/lang/cpp/modules-import/TestCXXModulesImport.py
index 3dfd65308aa20..3c4f8b2add523 100644
--- a/lldb/test/API/lang/cpp/modules-import/TestCXXModulesImport.py
+++ b/lldb/test/API/lang/cpp/modules-import/TestCXXModulesImport.py
@@ -19,7 +19,7 @@ def build(self):
)
super(CXXModulesImportTestCase, self).build()
- @requireDarwin
+ @requireDarwin()
@skipIf(macos_version=["<", "10.12"])
@skipIf(compiler="clang", compiler_version=["<", "14.0"])
def test_expr(self):
@@ -34,7 +34,7 @@ def test_expr(self):
"expr -l Objective-C++ -- @import THIS_MODULE_DOES_NOT_EXIST", error=True
)
- @requireDarwin
+ @requireDarwin()
@skipIf(macos_version=["<", "10.12"])
@skipIf(compiler="clang", compiler_version=["<", "14.0"])
def test_expr_failing_import(self):
diff --git a/lldb/test/API/lang/cpp/multiple-inheritance/TestCppMultipleInheritance.py b/lldb/test/API/lang/cpp/multiple-inheritance/TestCppMultipleInheritance.py
index 1145076080d14..4a155c57e7abe 100644
--- a/lldb/test/API/lang/cpp/multiple-inheritance/TestCppMultipleInheritance.py
+++ b/lldb/test/API/lang/cpp/multiple-inheritance/TestCppMultipleInheritance.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
def test(self):
self.build()
diff --git a/lldb/test/API/lang/cpp/namespace/TestNamespace.py b/lldb/test/API/lang/cpp/namespace/TestNamespace.py
index 36ce3eb8803e1..bd34e2f77849a 100644
--- a/lldb/test/API/lang/cpp/namespace/TestNamespace.py
+++ b/lldb/test/API/lang/cpp/namespace/TestNamespace.py
@@ -9,7 +9,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class NamespaceBreakpointTestCase(TestBase):
@expectedFailureAll(bugnumber="llvm.org/pr28548", compiler="gcc")
@expectedFailureAll(oslist=["windows"])
@@ -133,7 +133,7 @@ def runToBkpt(self, command):
# rdar://problem/8668674
@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24764")
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test_with_run_command(self):
"""Test that anonymous and named namespace variables display correctly."""
self.build()
diff --git a/lldb/test/API/lang/cpp/namespace/TestNamespaceLookup.py b/lldb/test/API/lang/cpp/namespace/TestNamespaceLookup.py
index 9dcb8fb91a1ae..f255e8c8e2cbe 100644
--- a/lldb/test/API/lang/cpp/namespace/TestNamespaceLookup.py
+++ b/lldb/test/API/lang/cpp/namespace/TestNamespaceLookup.py
@@ -100,7 +100,7 @@ def test_scope_lookup_with_run_command_globals(self):
self.expect_expr("::func()", result_type="int", result_value="1")
@skipIfWindows # This is flakey on Windows: llvm.org/pr38373
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test_scope_lookup_with_run_command(self):
"""Test scope lookup of functions in lldb."""
self.build()
@@ -259,7 +259,7 @@ def test_function_scope_lookup_with_run_command(self):
# NOTE: this test may fail on older systems that don't emit import
# entries in DWARF - may need to add checks for compiler versions here.
@skipIf(compiler="gcc", oslist=["linux"], debug_info=["dwo"]) # Skip to avoid crash
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test_scope_after_using_directive_lookup_with_run_command(self):
"""Test scope lookup after using directive in lldb."""
self.build()
@@ -323,7 +323,7 @@ def test_scope_ambiguity_after_using_lookup_with_run_command(self):
# the same type.
self.expect("expr -- func()", startstr="error")
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test_scope_lookup_shadowed_by_using_with_run_command(self):
"""Test scope lookup shadowed by using in lldb."""
self.build()
diff --git a/lldb/test/API/lang/cpp/namespace_conflicts/TestNamespaceConflicts.py b/lldb/test/API/lang/cpp/namespace_conflicts/TestNamespaceConflicts.py
index f0b5ba278f79f..1da64a72e9cba 100644
--- a/lldb/test/API/lang/cpp/namespace_conflicts/TestNamespaceConflicts.py
+++ b/lldb/test/API/lang/cpp/namespace_conflicts/TestNamespaceConflicts.py
@@ -1,4 +1,6 @@
from lldbsuite.test import lldbinline
from lldbsuite.test import decorators
-lldbinline.MakeInlineTest(__file__, globals(), [decorators.requireExpressionEvaluation])
+lldbinline.MakeInlineTest(
+ __file__, globals(), [decorators.requireExpressionEvaluation()]
+)
diff --git a/lldb/test/API/lang/cpp/operators/TestCppOperators.py b/lldb/test/API/lang/cpp/operators/TestCppOperators.py
index 65b0e9a480cfb..db477ae953856 100644
--- a/lldb/test/API/lang/cpp/operators/TestCppOperators.py
+++ b/lldb/test/API/lang/cpp/operators/TestCppOperators.py
@@ -5,7 +5,7 @@
__file__,
globals(),
[
- decorators.requireExpressionEvaluation,
+ decorators.requireExpressionEvaluation(),
decorators.expectedFailureAll(bugnumber="llvm.org/pr50814", compiler="gcc"),
],
)
diff --git a/lldb/test/API/lang/cpp/overloaded-functions/TestOverloadedFunctions.py b/lldb/test/API/lang/cpp/overloaded-functions/TestOverloadedFunctions.py
index bdd0836998379..b470d6272fa7a 100644
--- a/lldb/test/API/lang/cpp/overloaded-functions/TestOverloadedFunctions.py
+++ b/lldb/test/API/lang/cpp/overloaded-functions/TestOverloadedFunctions.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class OverloadedFunctionsTestCase(TestBase):
def test_with_run_command(self):
"""Test that functions with the same name are resolved correctly"""
diff --git a/lldb/test/API/lang/cpp/printf/TestPrintf.py b/lldb/test/API/lang/cpp/printf/TestPrintf.py
index e4c1822d5bb69..49d601ca9837c 100644
--- a/lldb/test/API/lang/cpp/printf/TestPrintf.py
+++ b/lldb/test/API/lang/cpp/printf/TestPrintf.py
@@ -5,7 +5,7 @@
__file__,
globals(),
[
- decorators.requireExpressionEvaluation,
+ decorators.requireExpressionEvaluation(),
decorators.expectedFailureAll(bugnumber="llvm.org/PR36715", oslist=["windows"]),
],
)
diff --git a/lldb/test/API/lang/cpp/rvalue-references/TestRvalueReferences.py b/lldb/test/API/lang/cpp/rvalue-references/TestRvalueReferences.py
index c78765e2e1808..7e25d4407f611 100644
--- a/lldb/test/API/lang/cpp/rvalue-references/TestRvalueReferences.py
+++ b/lldb/test/API/lang/cpp/rvalue-references/TestRvalueReferences.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class RvalueReferencesTestCase(TestBase):
# rdar://problem/11479676
@expectedFailureAll(
diff --git a/lldb/test/API/lang/cpp/scope/TestCppScope.py b/lldb/test/API/lang/cpp/scope/TestCppScope.py
index fa179656d27ed..00bc260f27086 100644
--- a/lldb/test/API/lang/cpp/scope/TestCppScope.py
+++ b/lldb/test/API/lang/cpp/scope/TestCppScope.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
@expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24764")
def test(self):
diff --git a/lldb/test/API/lang/cpp/static_members/TestCPPStaticMembers.py b/lldb/test/API/lang/cpp/static_members/TestCPPStaticMembers.py
index 5f64a29d2cbf8..79bcada49abfe 100644
--- a/lldb/test/API/lang/cpp/static_members/TestCPPStaticMembers.py
+++ b/lldb/test/API/lang/cpp/static_members/TestCPPStaticMembers.py
@@ -12,7 +12,7 @@
class TestCase(TestBase):
# We fail to lookup static members on Windows.
@expectedFailureAll(oslist=["windows"])
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test_access_from_main(self):
self.build()
lldbutil.run_to_source_breakpoint(
@@ -25,7 +25,7 @@ def test_access_from_main(self):
# We fail to lookup static members on Windows.
@expectedFailureAll(oslist=["windows"])
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test_access_from_member_function(self):
self.build()
lldbutil.run_to_source_breakpoint(
@@ -48,7 +48,7 @@ def test_access_without_scope(self):
# We fail to lookup static members on Windows.
@expectedFailureAll(oslist=["windows"])
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test_no_crash_in_IR_arithmetic(self):
"""
Test that LLDB doesn't crash on evaluating specific expression involving
diff --git a/lldb/test/API/lang/cpp/static_methods/TestCPPStaticMethods.py b/lldb/test/API/lang/cpp/static_methods/TestCPPStaticMethods.py
index 9a866542088bb..621a94874a4a7 100644
--- a/lldb/test/API/lang/cpp/static_methods/TestCPPStaticMethods.py
+++ b/lldb/test/API/lang/cpp/static_methods/TestCPPStaticMethods.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class CPPStaticMethodsTestCase(TestBase):
def test_with_run_command(self):
"""Test that static methods are properly distinguished from regular methods"""
diff --git a/lldb/test/API/lang/cpp/symbols/TestSymbols.py b/lldb/test/API/lang/cpp/symbols/TestSymbols.py
index 5229eb942f1f9..436fa36e28cf5 100644
--- a/lldb/test/API/lang/cpp/symbols/TestSymbols.py
+++ b/lldb/test/API/lang/cpp/symbols/TestSymbols.py
@@ -5,7 +5,7 @@
__file__,
globals(),
[
- decorators.requireExpressionEvaluation,
+ decorators.requireExpressionEvaluation(),
decorators.expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24764"),
],
)
diff --git a/lldb/test/API/lang/cpp/template-diagnostic-hint/TestTemplateDiagnosticHint.py b/lldb/test/API/lang/cpp/template-diagnostic-hint/TestTemplateDiagnosticHint.py
index 1ea90acb59f1d..e7f86cc56eacc 100644
--- a/lldb/test/API/lang/cpp/template-diagnostic-hint/TestTemplateDiagnosticHint.py
+++ b/lldb/test/API/lang/cpp/template-diagnostic-hint/TestTemplateDiagnosticHint.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
@expectedFailureWindows
def test(self):
diff --git a/lldb/test/API/lang/cpp/template-function/TestTemplateFunctions.py b/lldb/test/API/lang/cpp/template-function/TestTemplateFunctions.py
index b3c9ef27aea92..0b8aacbd40f40 100644
--- a/lldb/test/API/lang/cpp/template-function/TestTemplateFunctions.py
+++ b/lldb/test/API/lang/cpp/template-function/TestTemplateFunctions.py
@@ -56,7 +56,7 @@ def do_test_template_function(self, add_cast):
self.expect_expr("d1 == d2", result_type="bool", result_value="true")
@skipIfWindows
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test_template_function_with_cast(self):
self.do_test_template_function(True)
diff --git a/lldb/test/API/lang/cpp/this/TestCPPThis.py b/lldb/test/API/lang/cpp/this/TestCPPThis.py
index 8e79dd2442b56..8b131a2ff4454 100644
--- a/lldb/test/API/lang/cpp/this/TestCPPThis.py
+++ b/lldb/test/API/lang/cpp/this/TestCPPThis.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class CPPThisTestCase(TestBase):
# rdar://problem/9962849
@expectedFailureAll(
diff --git a/lldb/test/API/lang/cpp/this_class_type_mixing/TestThisClassTypeMixing.py b/lldb/test/API/lang/cpp/this_class_type_mixing/TestThisClassTypeMixing.py
index 7f63ce40b6817..d26bbd48f9ba3 100644
--- a/lldb/test/API/lang/cpp/this_class_type_mixing/TestThisClassTypeMixing.py
+++ b/lldb/test/API/lang/cpp/this_class_type_mixing/TestThisClassTypeMixing.py
@@ -14,7 +14,7 @@ class by injecting a "$__lldb_expr" member function into the class. This
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
@no_debug_info_test
def test(self):
diff --git a/lldb/test/API/lang/cpp/typedef/TestCppTypedef.py b/lldb/test/API/lang/cpp/typedef/TestCppTypedef.py
index 65b74e4782da1..dac1906039dea 100644
--- a/lldb/test/API/lang/cpp/typedef/TestCppTypedef.py
+++ b/lldb/test/API/lang/cpp/typedef/TestCppTypedef.py
@@ -8,7 +8,7 @@
from lldbsuite.test.decorators import *
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCppTypedef(TestBase):
def test_typedef(self):
"""
diff --git a/lldb/test/API/lang/cpp/unicode-literals/TestUnicodeLiterals.py b/lldb/test/API/lang/cpp/unicode-literals/TestUnicodeLiterals.py
index 96e34d52c834c..ac66c12a10cfa 100644
--- a/lldb/test/API/lang/cpp/unicode-literals/TestUnicodeLiterals.py
+++ b/lldb/test/API/lang/cpp/unicode-literals/TestUnicodeLiterals.py
@@ -23,7 +23,7 @@
# }
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class UnicodeLiteralsTestCase(TestBase):
def test_expr1(self):
"""Test that the expression parser returns proper Unicode strings."""
diff --git a/lldb/test/API/lang/cpp/union-static-data-members/TestCppUnionStaticMembers.py b/lldb/test/API/lang/cpp/union-static-data-members/TestCppUnionStaticMembers.py
index 8317bb299d407..a85a1b849c44b 100644
--- a/lldb/test/API/lang/cpp/union-static-data-members/TestCppUnionStaticMembers.py
+++ b/lldb/test/API/lang/cpp/union-static-data-members/TestCppUnionStaticMembers.py
@@ -8,7 +8,7 @@
import lldbsuite.test.lldbutil as lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class CppUnionStaticMembersTestCase(TestBase):
def test_print_union(self):
"""Tests that frame variable and expr work
diff --git a/lldb/test/API/lang/cpp/unique-types4/TestUniqueTypes4.py b/lldb/test/API/lang/cpp/unique-types4/TestUniqueTypes4.py
index b924ed7f8d86a..9e9a1a3ecd30c 100644
--- a/lldb/test/API/lang/cpp/unique-types4/TestUniqueTypes4.py
+++ b/lldb/test/API/lang/cpp/unique-types4/TestUniqueTypes4.py
@@ -8,7 +8,7 @@
from lldbsuite.test.lldbtest import *
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class UniqueTypesTestCase4(TestBase):
SHARED_BUILD_TESTCASE = False
diff --git a/lldb/test/API/lang/cpp/virtual-functions/TestCppVirtualFunctions.py b/lldb/test/API/lang/cpp/virtual-functions/TestCppVirtualFunctions.py
index dfd6ab5e71d29..ad51801f58b20 100644
--- a/lldb/test/API/lang/cpp/virtual-functions/TestCppVirtualFunctions.py
+++ b/lldb/test/API/lang/cpp/virtual-functions/TestCppVirtualFunctions.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireExpressionEvaluation
+ at requireExpressionEvaluation()
class TestCase(TestBase):
def common_setup(self):
self.build()
diff --git a/lldb/test/API/lang/objc/complete-type-check/TestObjCIsTypeComplete.py b/lldb/test/API/lang/objc/complete-type-check/TestObjCIsTypeComplete.py
index 651d000d0a884..a5856ad3b29af 100644
--- a/lldb/test/API/lang/objc/complete-type-check/TestObjCIsTypeComplete.py
+++ b/lldb/test/API/lang/objc/complete-type-check/TestObjCIsTypeComplete.py
@@ -7,7 +7,7 @@
class TestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
@no_debug_info_test
def test(self):
self.build()
diff --git a/lldb/test/API/lang/objc/conflicting-class-list-function-from-user/TestObjCClassListFunctionFromUser.py b/lldb/test/API/lang/objc/conflicting-class-list-function-from-user/TestObjCClassListFunctionFromUser.py
index badfb89fbfcf1..e64e9bfc2090e 100644
--- a/lldb/test/API/lang/objc/conflicting-class-list-function-from-user/TestObjCClassListFunctionFromUser.py
+++ b/lldb/test/API/lang/objc/conflicting-class-list-function-from-user/TestObjCClassListFunctionFromUser.py
@@ -5,7 +5,7 @@
class TestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
# LLDB ends up calling the user-defined function (but at least doesn't
# crash).
@skipIf(macos_version=["<", "13.0"])
diff --git a/lldb/test/API/lang/objc/cpp_keyword_identifiers/TestCppKeywordsAsObjCIdentifiers.py b/lldb/test/API/lang/objc/cpp_keyword_identifiers/TestCppKeywordsAsObjCIdentifiers.py
index c74bee18f9f76..d86cf98ddd8a5 100644
--- a/lldb/test/API/lang/objc/cpp_keyword_identifiers/TestCppKeywordsAsObjCIdentifiers.py
+++ b/lldb/test/API/lang/objc/cpp_keyword_identifiers/TestCppKeywordsAsObjCIdentifiers.py
@@ -5,7 +5,7 @@
class TestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
@no_debug_info_test
def test(self):
self.build()
diff --git a/lldb/test/API/lang/objc/languageinfo/TestObjCLanguageSpecificData.py b/lldb/test/API/lang/objc/languageinfo/TestObjCLanguageSpecificData.py
index 11938db2f7a56..f43a231de8039 100644
--- a/lldb/test/API/lang/objc/languageinfo/TestObjCLanguageSpecificData.py
+++ b/lldb/test/API/lang/objc/languageinfo/TestObjCLanguageSpecificData.py
@@ -5,7 +5,7 @@
class ObjCiVarIMPTestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
@no_debug_info_test
def test_imp_ivar_type(self):
self.build()
diff --git a/lldb/test/API/lang/objc/module-import-log/TestClangModuleImportLog.py b/lldb/test/API/lang/objc/module-import-log/TestClangModuleImportLog.py
index 09bc8c91f32bc..2c803ddf57a20 100644
--- a/lldb/test/API/lang/objc/module-import-log/TestClangModuleImportLog.py
+++ b/lldb/test/API/lang/objc/module-import-log/TestClangModuleImportLog.py
@@ -5,7 +5,7 @@
class TestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
def test(self):
self.build()
diff --git a/lldb/test/API/lang/objc/objc-class-method/TestObjCClassMethod.py b/lldb/test/API/lang/objc/objc-class-method/TestObjCClassMethod.py
index 09ee5b58db0ab..aeded2715f54d 100644
--- a/lldb/test/API/lang/objc/objc-class-method/TestObjCClassMethod.py
+++ b/lldb/test/API/lang/objc/objc-class-method/TestObjCClassMethod.py
@@ -15,7 +15,7 @@ def setUp(self):
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
@add_test_categories(["pyapi"])
def test_without_class_stubs(self):
self.do_test_with_python_api()
diff --git a/lldb/test/API/lang/objc/objc-optimized/TestObjcOptimized.py b/lldb/test/API/lang/objc/objc-optimized/TestObjcOptimized.py
index 2c069b5c9dad8..8c1f31e5a5609 100644
--- a/lldb/test/API/lang/objc/objc-optimized/TestObjcOptimized.py
+++ b/lldb/test/API/lang/objc/objc-optimized/TestObjcOptimized.py
@@ -17,7 +17,7 @@
# test failure: objc_optimized does not work for "-C clang -A i386"
- at requireDarwin
+ at requireDarwin()
class ObjcOptimizedTestCase(TestBase):
myclass = "MyClass"
mymethod = "description"
diff --git a/lldb/test/API/lang/objc/orderedset/TestOrderedSet.py b/lldb/test/API/lang/objc/orderedset/TestOrderedSet.py
index 65e86f8c8d96a..24c87dd4c34f3 100644
--- a/lldb/test/API/lang/objc/orderedset/TestOrderedSet.py
+++ b/lldb/test/API/lang/objc/orderedset/TestOrderedSet.py
@@ -11,7 +11,7 @@ def test_ordered_set(self):
self.build()
self.run_tests()
- @requireDarwin
+ @requireDarwin()
def test_ordered_set_no_const(self):
disable_constant_classes = {
"CFLAGS_EXTRAS": "-fno-constant-nsnumber-literals "
diff --git a/lldb/test/API/lang/objc/single-entry-dictionary/TestObjCSingleEntryDictionary.py b/lldb/test/API/lang/objc/single-entry-dictionary/TestObjCSingleEntryDictionary.py
index 8e8166791ab82..c740a1d085030 100644
--- a/lldb/test/API/lang/objc/single-entry-dictionary/TestObjCSingleEntryDictionary.py
+++ b/lldb/test/API/lang/objc/single-entry-dictionary/TestObjCSingleEntryDictionary.py
@@ -16,7 +16,7 @@ def setUp(self):
# Find the line number to break inside main().
self.line = line_number("main.m", "// break here")
- @requireDarwin
+ @requireDarwin()
@expectedFailureAll(
oslist=["watchos"], bugnumber="rdar://problem/34642736"
) # bug in NSDictionary formatting on watchos
@@ -24,7 +24,7 @@ def test_single_entry_dict(self):
self.build()
self.run_tests()
- @requireDarwin
+ @requireDarwin()
@expectedFailureAll(
oslist=["watchos"], bugnumber="rdar://problem/34642736"
) # bug in NSDictionary formatting on watchos
diff --git a/lldb/test/API/lang/objc/tagged-pointer-children/TestTaggedPointerChildren.py b/lldb/test/API/lang/objc/tagged-pointer-children/TestTaggedPointerChildren.py
index ddcdcc6635827..3e89490f1017a 100644
--- a/lldb/test/API/lang/objc/tagged-pointer-children/TestTaggedPointerChildren.py
+++ b/lldb/test/API/lang/objc/tagged-pointer-children/TestTaggedPointerChildren.py
@@ -26,7 +26,7 @@ def assert_no_unreadable_children(self, valobj):
)
self.assert_no_unreadable_children(child)
- @requireDarwin
+ @requireDarwin()
@skipIf(archs=["i386", "i686"])
def test(self):
"""
@@ -67,7 +67,7 @@ def test(self):
self.assertGreater(heap.GetNumChildren(), 0, "real object still has children")
self.assert_no_unreadable_children(heap)
- @requireDarwin
+ @requireDarwin()
@skipIf(archs=["i386", "i686"])
def test_registered_synthetic_takes_precedence(self):
"""
diff --git a/lldb/test/API/lang/objc/warnings-in-expr-parser/TestObjCWarningsInExprParser.py b/lldb/test/API/lang/objc/warnings-in-expr-parser/TestObjCWarningsInExprParser.py
index bcb6951d1d915..f35d982afd2c6 100644
--- a/lldb/test/API/lang/objc/warnings-in-expr-parser/TestObjCWarningsInExprParser.py
+++ b/lldb/test/API/lang/objc/warnings-in-expr-parser/TestObjCWarningsInExprParser.py
@@ -9,7 +9,7 @@
class TestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
@no_debug_info_test
def test(self):
self.build()
diff --git a/lldb/test/API/lang/objcxx/cpp_keywords_enabled/TestObjCppKeywordsEnabled.py b/lldb/test/API/lang/objcxx/cpp_keywords_enabled/TestObjCppKeywordsEnabled.py
index a3c6bda33f132..a7737f4238306 100644
--- a/lldb/test/API/lang/objcxx/cpp_keywords_enabled/TestObjCppKeywordsEnabled.py
+++ b/lldb/test/API/lang/objcxx/cpp_keywords_enabled/TestObjCppKeywordsEnabled.py
@@ -5,7 +5,7 @@
class TestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
@no_debug_info_test
def test_keyword(self):
# Make sure that C++ keywords work in the expression parser when using
diff --git a/lldb/test/API/linux/aarch64/aarch32_compat/TestAArch64LinuxAArch32Compat.py b/lldb/test/API/linux/aarch64/aarch32_compat/TestAArch64LinuxAArch32Compat.py
index b1d7c452abc79..d8970f05772ff 100644
--- a/lldb/test/API/linux/aarch64/aarch32_compat/TestAArch64LinuxAArch32Compat.py
+++ b/lldb/test/API/linux/aarch64/aarch32_compat/TestAArch64LinuxAArch32Compat.py
@@ -16,7 +16,7 @@ class AArch64LinuxAArch32Compat(TestBase):
@skipIfRemote
@skipUnlessArch("aarch64")
@skipIfLLVMTargetMissing("ARM")
- @requireLinux
+ @requireLinux()
def test_aarch32_compat(self):
self.build()
test_program = self.getBuildArtifact("a.out")
diff --git a/lldb/test/API/linux/aarch64/fpmr/TestAArch64LinuxFPMR.py b/lldb/test/API/linux/aarch64/fpmr/TestAArch64LinuxFPMR.py
index ba547ab70f984..0d8ee4ccf0058 100644
--- a/lldb/test/API/linux/aarch64/fpmr/TestAArch64LinuxFPMR.py
+++ b/lldb/test/API/linux/aarch64/fpmr/TestAArch64LinuxFPMR.py
@@ -16,7 +16,7 @@ class AArch64LinuxFPMR(TestBase):
EXPECTED_FPMR_FIELDS = ["LSCALE2 = 42", "F8S1 = FP8_E4M3 | 0x4"]
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_fpmr_register_live(self):
if not self.isAArch64FPMR():
self.skipTest("FPMR must be present.")
diff --git a/lldb/test/API/linux/aarch64/gcs/TestAArch64LinuxGCS.py b/lldb/test/API/linux/aarch64/gcs/TestAArch64LinuxGCS.py
index c413278742afc..e843bb35eab33 100644
--- a/lldb/test/API/linux/aarch64/gcs/TestAArch64LinuxGCS.py
+++ b/lldb/test/API/linux/aarch64/gcs/TestAArch64LinuxGCS.py
@@ -13,7 +13,7 @@ class AArch64LinuxGCSTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_gcs_region(self):
if not self.isAArch64GCS():
self.skipTest("Target must support GCS.")
@@ -62,7 +62,7 @@ def test_gcs_region(self):
# cleanly if GCS was manually enabled.
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_gcs_fault(self):
if not self.isAArch64GCS():
self.skipTest("Target must support GCS.")
@@ -118,7 +118,7 @@ def check_gcs_registers(
return gcs_features_enabled, gcs_features_locked, gcspr_el0
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_gcs_registers(self):
if not self.isAArch64GCS():
self.skipTest("Target must support GCS.")
@@ -239,7 +239,7 @@ def test_gcs_registers(self):
],
)
- @requireLinux
+ @requireLinux()
def test_gcs_expression_simple(self):
if not self.isAArch64GCS():
self.skipTest("Target must support GCS.")
@@ -303,7 +303,7 @@ def test_gcs_expression_simple(self):
self.expect(expr_cmd, substrs=["(unsigned long) 1"])
self.check_gcs_registers(*before)
- @requireLinux
+ @requireLinux()
def test_gcs_expression_disable_gcs(self):
if not self.isAArch64GCS():
self.skipTest("Target must support GCS.")
@@ -343,7 +343,7 @@ def test_gcs_expression_disable_gcs(self):
enabled &= ~1
self.check_gcs_registers(enabled, locked, spr_el0)
- @requireLinux
+ @requireLinux()
def test_gcs_expression_enable_gcs(self):
if not self.isAArch64GCS():
self.skipTest("Target must support GCS.")
diff --git a/lldb/test/API/linux/aarch64/mte_memory_region/TestAArch64LinuxMTEMemoryRegion.py b/lldb/test/API/linux/aarch64/mte_memory_region/TestAArch64LinuxMTEMemoryRegion.py
index fb55f8aab54ae..65d4895b08724 100644
--- a/lldb/test/API/linux/aarch64/mte_memory_region/TestAArch64LinuxMTEMemoryRegion.py
+++ b/lldb/test/API/linux/aarch64/mte_memory_region/TestAArch64LinuxMTEMemoryRegion.py
@@ -14,7 +14,7 @@ class AArch64LinuxMTEMemoryRegionTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
@skipUnlessAArch64MTELinuxCompiler
def test_mte_regions(self):
if not self.isAArch64MTE():
diff --git a/lldb/test/API/linux/aarch64/mte_tag_access/TestAArch64LinuxMTEMemoryTagAccess.py b/lldb/test/API/linux/aarch64/mte_tag_access/TestAArch64LinuxMTEMemoryTagAccess.py
index a5908bf224573..b098a38fdc687 100644
--- a/lldb/test/API/linux/aarch64/mte_tag_access/TestAArch64LinuxMTEMemoryTagAccess.py
+++ b/lldb/test/API/linux/aarch64/mte_tag_access/TestAArch64LinuxMTEMemoryTagAccess.py
@@ -44,7 +44,7 @@ def setup_mte_test(self):
)
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
@skipUnlessAArch64MTELinuxCompiler
def test_mte_tag_read(self):
self.setup_mte_test()
@@ -209,7 +209,7 @@ def test_mte_tag_read(self):
)
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
@skipUnlessAArch64MTELinuxCompiler
def test_mte_tag_write(self):
self.setup_mte_test()
@@ -431,7 +431,7 @@ def test_mte_tag_write(self):
)
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
@skipUnlessAArch64MTELinuxCompiler
def test_mte_memory_read_tag_display(self):
self.setup_mte_test()
@@ -588,7 +588,7 @@ def test_mte_memory_read_tag_display(self):
)
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
@skipUnlessAArch64MTELinuxCompiler
# Repeating options currently does not work, see
# https://github.com/llvm/llvm-project/issues/192057.
@@ -631,7 +631,7 @@ def test_mte_memory_read_tag_display_repeated(self):
)
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
@skipUnlessAArch64MTELinuxCompiler
def test_mte_memory_find(self):
"""Test the --show-tags option with memory find."""
diff --git a/lldb/test/API/linux/aarch64/mte_tag_faults/TestAArch64LinuxMTEMemoryTagFaults.py b/lldb/test/API/linux/aarch64/mte_tag_faults/TestAArch64LinuxMTEMemoryTagFaults.py
index 55c1de50dfc92..fa8248385bd5e 100644
--- a/lldb/test/API/linux/aarch64/mte_tag_faults/TestAArch64LinuxMTEMemoryTagFaults.py
+++ b/lldb/test/API/linux/aarch64/mte_tag_faults/TestAArch64LinuxMTEMemoryTagFaults.py
@@ -38,7 +38,7 @@ def setup_mte_test(self, fault_type):
)
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
@skipUnlessAArch64MTELinuxCompiler
def test_mte_tag_fault_sync(self):
self.setup_mte_test("sync")
@@ -57,7 +57,7 @@ def test_mte_tag_fault_sync(self):
)
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
@skipUnlessAArch64MTELinuxCompiler
def test_mte_tag_fault_async(self):
self.setup_mte_test("async")
diff --git a/lldb/test/API/linux/aarch64/non_address_bit_code_break/TestAArch64LinuxNonAddressBitCodeBreak.py b/lldb/test/API/linux/aarch64/non_address_bit_code_break/TestAArch64LinuxNonAddressBitCodeBreak.py
index 252fdaa22b2ea..c7160482ffc60 100644
--- a/lldb/test/API/linux/aarch64/non_address_bit_code_break/TestAArch64LinuxNonAddressBitCodeBreak.py
+++ b/lldb/test/API/linux/aarch64/non_address_bit_code_break/TestAArch64LinuxNonAddressBitCodeBreak.py
@@ -54,11 +54,11 @@ def do_tagged_break(self, hardware):
# AArch64 Linux always enables the top byte ignore feature
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_software_break(self):
self.do_tagged_break(False)
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_hardware_break(self):
self.do_tagged_break(True)
diff --git a/lldb/test/API/linux/aarch64/non_address_bit_memory_access/TestAArch64LinuxNonAddressBitMemoryAccess.py b/lldb/test/API/linux/aarch64/non_address_bit_memory_access/TestAArch64LinuxNonAddressBitMemoryAccess.py
index 67b1bae282ec2..3409f057937c2 100644
--- a/lldb/test/API/linux/aarch64/non_address_bit_memory_access/TestAArch64LinuxNonAddressBitMemoryAccess.py
+++ b/lldb/test/API/linux/aarch64/non_address_bit_memory_access/TestAArch64LinuxNonAddressBitMemoryAccess.py
@@ -45,7 +45,7 @@ def check_cmd_read_write(self, write_to, read_from, data):
self.expect("memory read {}".format(read_from), substrs=[data])
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_non_address_bit_memory_read_write_cmds(self):
self.setup_test()
@@ -82,7 +82,7 @@ def check_api_read_write(self, write_to, read_from, data):
self.assertEqual(data, buf_content)
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_non_address_bit_memory_read_write_api_process(self):
self.setup_test()
buf, buf_with_non_address = self.get_ptr_values()
@@ -121,7 +121,7 @@ def test_non_address_bit_memory_read_write_api_process(self):
self.assertEqual(0x5634120042444C4C, ptr)
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_non_address_bit_memory_read_write_api_target(self):
self.setup_test()
buf, buf_with_non_address = self.get_ptr_values()
@@ -147,7 +147,7 @@ def test_non_address_bit_memory_read_write_api_target(self):
# Read<type>FromMemory are in Target but not SBTarget so no tests for those.
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_non_address_bit_memory_caching(self):
# The read/write tests above do exercise the cache but this test
# only cares that the cache sees buf and buf_with_non_address
diff --git a/lldb/test/API/linux/aarch64/permission_overlay/TestAArch64LinuxPOE.py b/lldb/test/API/linux/aarch64/permission_overlay/TestAArch64LinuxPOE.py
index 90383e0b898b8..bdfdd457b7338 100644
--- a/lldb/test/API/linux/aarch64/permission_overlay/TestAArch64LinuxPOE.py
+++ b/lldb/test/API/linux/aarch64/permission_overlay/TestAArch64LinuxPOE.py
@@ -35,7 +35,7 @@ class AArch64LinuxPOE(TestBase):
)
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_poe_live(self):
if not self.isAArch64POE():
self.skipTest("POE must be present.")
diff --git a/lldb/test/API/linux/aarch64/tagged_memory_access/TestAArch64LinuxTaggedMemoryAccess.py b/lldb/test/API/linux/aarch64/tagged_memory_access/TestAArch64LinuxTaggedMemoryAccess.py
index 5d364b51c0ac3..15f89c5ddda36 100644
--- a/lldb/test/API/linux/aarch64/tagged_memory_access/TestAArch64LinuxTaggedMemoryAccess.py
+++ b/lldb/test/API/linux/aarch64/tagged_memory_access/TestAArch64LinuxTaggedMemoryAccess.py
@@ -38,7 +38,7 @@ def setup_test(self):
)
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_tagged_memory_read(self):
self.setup_test()
@@ -64,7 +64,7 @@ def test_tagged_memory_read(self):
self.expect("memory read", patterns=[tagged_addr_pattern], matching=False)
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_tagged_memory_find(self):
self.setup_test()
diff --git a/lldb/test/API/linux/aarch64/tagged_memory_region/TestAArch64LinuxTaggedMemoryRegion.py b/lldb/test/API/linux/aarch64/tagged_memory_region/TestAArch64LinuxTaggedMemoryRegion.py
index 509b50151b308..d4eee74bbf56e 100644
--- a/lldb/test/API/linux/aarch64/tagged_memory_region/TestAArch64LinuxTaggedMemoryRegion.py
+++ b/lldb/test/API/linux/aarch64/tagged_memory_region/TestAArch64LinuxTaggedMemoryRegion.py
@@ -14,7 +14,7 @@ class AArch64LinuxTaggedMemoryRegionTestCase(TestBase):
# AArch64 Linux always enables the top byte ignore feature
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_mte_regions(self):
self.build()
self.runCmd("file " + self.getBuildArtifact("a.out"), CURRENT_EXECUTABLE_SET)
diff --git a/lldb/test/API/linux/aarch64/tls_registers/TestAArch64LinuxTLSRegisters.py b/lldb/test/API/linux/aarch64/tls_registers/TestAArch64LinuxTLSRegisters.py
index 4369110699b2c..9005da99eb8ed 100644
--- a/lldb/test/API/linux/aarch64/tls_registers/TestAArch64LinuxTLSRegisters.py
+++ b/lldb/test/API/linux/aarch64/tls_registers/TestAArch64LinuxTLSRegisters.py
@@ -96,7 +96,7 @@ def check_tls_reg(self, registers):
self.expect("p {}_was_set".format(register), substrs=["true"])
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_tls_no_sme(self):
if self.isAArch64SME():
self.skipTest("SME must not be present.")
@@ -104,7 +104,7 @@ def test_tls_no_sme(self):
self.check_tls_reg(["tpidr"])
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_tls_sme(self):
if not self.isAArch64SME():
self.skipTest("SME must be present.")
@@ -112,7 +112,7 @@ def test_tls_sme(self):
self.check_tls_reg(["tpidr", "tpidr2"])
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_tpidr2_no_sme(self):
if self.isAArch64SME():
self.skipTest("SME must not be present.")
diff --git a/lldb/test/API/linux/aarch64/unwind_signal/TestUnwindSignal.py b/lldb/test/API/linux/aarch64/unwind_signal/TestUnwindSignal.py
index 893cea72d05cc..53fd61c8bdc4e 100644
--- a/lldb/test/API/linux/aarch64/unwind_signal/TestUnwindSignal.py
+++ b/lldb/test/API/linux/aarch64/unwind_signal/TestUnwindSignal.py
@@ -12,7 +12,7 @@ class UnwindSignalTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
@skipUnlessArch("aarch64")
- @requireLinux
+ @requireLinux()
def test_unwind_signal(self):
"""Inferior calls sigill() and handles the resultant SIGILL.
Stopped at a breakpoint in the handler, check that we can unwind
diff --git a/lldb/test/API/linux/add-symbols/TestTargetSymbolsAddCommand.py b/lldb/test/API/linux/add-symbols/TestTargetSymbolsAddCommand.py
index 57ecc08439298..258ce44cab36d 100644
--- a/lldb/test/API/linux/add-symbols/TestTargetSymbolsAddCommand.py
+++ b/lldb/test/API/linux/add-symbols/TestTargetSymbolsAddCommand.py
@@ -11,7 +11,7 @@ def setUp(self):
self.source = "main.c"
@no_debug_info_test # Prevent the genaration of the dwarf version of this test
- @requireLinux
+ @requireLinux()
def test_target_symbols_add(self):
"""Test that 'target symbols add' can load the symbols
even if gnu.build-id and gnu_debuglink are not present in the module.
diff --git a/lldb/test/API/linux/arm/tls_register/TestArmLinuxTLSRegister.py b/lldb/test/API/linux/arm/tls_register/TestArmLinuxTLSRegister.py
index 4d88e37c0fdb5..b681044e5600f 100644
--- a/lldb/test/API/linux/arm/tls_register/TestArmLinuxTLSRegister.py
+++ b/lldb/test/API/linux/arm/tls_register/TestArmLinuxTLSRegister.py
@@ -9,7 +9,7 @@
@skipUnlessArch("arm")
- at requireLinux
+ at requireLinux()
class ArmLinuxTLSRegister(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/linux/i386/tls-address/TestI386TLSAddress.py b/lldb/test/API/linux/i386/tls-address/TestI386TLSAddress.py
index 47cb2b3243617..0b9d41a31ba9b 100644
--- a/lldb/test/API/linux/i386/tls-address/TestI386TLSAddress.py
+++ b/lldb/test/API/linux/i386/tls-address/TestI386TLSAddress.py
@@ -7,7 +7,7 @@
class I386TLSAddressTestCase(TestBase):
- @requireLinux
+ @requireLinux()
@skipIf(archs=no_match(["x86_64", "i386", "i686"]))
@skipUnlessCompilerSupports("-m32")
def test(self):
diff --git a/lldb/test/API/linux/linker-symbols/TestLinkerSymbols.py b/lldb/test/API/linux/linker-symbols/TestLinkerSymbols.py
index d1fe3de462674..379cdeb8297f0 100644
--- a/lldb/test/API/linux/linker-symbols/TestLinkerSymbols.py
+++ b/lldb/test/API/linux/linker-symbols/TestLinkerSymbols.py
@@ -15,7 +15,7 @@ class TestLinkerSymbols(TestBase):
NO_DEBUG_INFO_TESTCASE = True
SHARED_BUILD_TESTCASE = False
- @requireLinux
+ @requireLinux()
def test_linker_symbols(self):
build_dict = dict(LD_EXTRAS="-Wl,-T," + self.getSourcePath("linker.script"))
self.build(dictionary=build_dict)
diff --git a/lldb/test/API/linux/loongarch64/simd_registers/TestLoongArch64LinuxSIMDRegisters.py b/lldb/test/API/linux/loongarch64/simd_registers/TestLoongArch64LinuxSIMDRegisters.py
index a7e94c7862f04..bfbdcc41abdd4 100644
--- a/lldb/test/API/linux/loongarch64/simd_registers/TestLoongArch64LinuxSIMDRegisters.py
+++ b/lldb/test/API/linux/loongarch64/simd_registers/TestLoongArch64LinuxSIMDRegisters.py
@@ -78,7 +78,7 @@ def simd_registers_impl(self, mode):
self.expect("continue", substrs=["exited with status = 0"])
@skipUnlessArch("loongarch64")
- @requireLinux
+ @requireLinux()
def test_lsx(self):
"""Test read/write of LSX registers."""
if not self.isLoongArchLSX():
@@ -86,7 +86,7 @@ def test_lsx(self):
self.simd_registers_impl(Mode.LSX)
@skipUnlessArch("loongarch64")
- @requireLinux
+ @requireLinux()
def test_lasx(self):
"""Test read/write of LASX registers."""
if not self.isLoongArchLASX():
diff --git a/lldb/test/API/linux/mix-dwo-and-regular-objects/TestMixedDwarfBinary.py b/lldb/test/API/linux/mix-dwo-and-regular-objects/TestMixedDwarfBinary.py
index 18e2f3f5839b9..f89e25b8a54fb 100644
--- a/lldb/test/API/linux/mix-dwo-and-regular-objects/TestMixedDwarfBinary.py
+++ b/lldb/test/API/linux/mix-dwo-and-regular-objects/TestMixedDwarfBinary.py
@@ -8,7 +8,7 @@
class TestMixedDwarfBinary(TestBase):
@no_debug_info_test # Prevent the genaration of the dwarf version of this test
@add_test_categories(["dwo"])
- @requireLinux
+ @requireLinux()
def test_mixed_dwarf(self):
"""Test that 'frame variable' works
for the executable built from two source files compiled
diff --git a/lldb/test/API/linux/sepdebugsymlink/TestTargetSymbolsSepDebugSymlink.py b/lldb/test/API/linux/sepdebugsymlink/TestTargetSymbolsSepDebugSymlink.py
index afa8a0b558d80..d8ac77378b16c 100644
--- a/lldb/test/API/linux/sepdebugsymlink/TestTargetSymbolsSepDebugSymlink.py
+++ b/lldb/test/API/linux/sepdebugsymlink/TestTargetSymbolsSepDebugSymlink.py
@@ -7,7 +7,7 @@
class TestTargetSymbolsSepDebugSymlink(TestBase):
@no_debug_info_test # Prevent the genaration of the dwarf version of this test
- @requireLinux
+ @requireLinux()
@skipIf(hostoslist=["windows"])
@skipIfRemote # llvm.org/pr36237
def test_target_symbols_sepdebug_symlink_case(self):
diff --git a/lldb/test/API/linux/thread/create_during_instruction_step/TestCreateDuringInstructionStep.py b/lldb/test/API/linux/thread/create_during_instruction_step/TestCreateDuringInstructionStep.py
index 7d7cd4ac1afd3..75701ffa6e635 100644
--- a/lldb/test/API/linux/thread/create_during_instruction_step/TestCreateDuringInstructionStep.py
+++ b/lldb/test/API/linux/thread/create_during_instruction_step/TestCreateDuringInstructionStep.py
@@ -10,11 +10,11 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class CreateDuringInstructionStepTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requireLinux
+ @requireLinux()
@expectedFailureAndroid("llvm.org/pr24737", archs=["arm$"])
@skipIf(oslist=["linux"], archs=["arm$", "aarch64"], bugnumber="llvm.org/pr24737")
def test_step_inst(self):
diff --git a/lldb/test/API/macosx/add-dsym/TestAddDsymDownload.py b/lldb/test/API/macosx/add-dsym/TestAddDsymDownload.py
index 253b26ff84a79..8ee120f2bb9a9 100644
--- a/lldb/test/API/macosx/add-dsym/TestAddDsymDownload.py
+++ b/lldb/test/API/macosx/add-dsym/TestAddDsymDownload.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireDarwin
+ at requireDarwin()
class AddDsymDownload(TestBase):
SHARED_BUILD_TESTCASE = False
diff --git a/lldb/test/API/macosx/add-dsym/TestAddDsymMidExecutionCommand.py b/lldb/test/API/macosx/add-dsym/TestAddDsymMidExecutionCommand.py
index 8faef87650de6..dd40d36cbf44d 100644
--- a/lldb/test/API/macosx/add-dsym/TestAddDsymMidExecutionCommand.py
+++ b/lldb/test/API/macosx/add-dsym/TestAddDsymMidExecutionCommand.py
@@ -7,7 +7,7 @@
from lldbsuite.test import lldbutil
- at requireDarwin
+ at requireDarwin()
class AddDsymMidExecutionCommandCase(TestBase):
SHARED_BUILD_TESTCASE = False
diff --git a/lldb/test/API/macosx/arm-pointer-metadata-cfa-dwarf-expr/TestArmPointerMetadataCFADwarfExpr.py b/lldb/test/API/macosx/arm-pointer-metadata-cfa-dwarf-expr/TestArmPointerMetadataCFADwarfExpr.py
index 7e08b98d87f7d..503b8f9f51fb7 100644
--- a/lldb/test/API/macosx/arm-pointer-metadata-cfa-dwarf-expr/TestArmPointerMetadataCFADwarfExpr.py
+++ b/lldb/test/API/macosx/arm-pointer-metadata-cfa-dwarf-expr/TestArmPointerMetadataCFADwarfExpr.py
@@ -4,7 +4,7 @@
from lldbsuite.test import lldbutil
- at requireDarwin
+ at requireDarwin()
@skipIf(archs=no_match(["arm64"]))
class TestArmPointerMetadataStripping(TestBase):
def test(self):
diff --git a/lldb/test/API/macosx/bss-only-data-section-sliding/TestBSSOnlyDataSectionSliding.py b/lldb/test/API/macosx/bss-only-data-section-sliding/TestBSSOnlyDataSectionSliding.py
index 1547ac7aebc87..daea7783ed74b 100644
--- a/lldb/test/API/macosx/bss-only-data-section-sliding/TestBSSOnlyDataSectionSliding.py
+++ b/lldb/test/API/macosx/bss-only-data-section-sliding/TestBSSOnlyDataSectionSliding.py
@@ -7,7 +7,7 @@
class TestBSSOnlyDataSectionSliding(TestBase):
- @requireDarwin
+ @requireDarwin()
def test_with_python_api(self):
"""Test that we get thread names when interrupting a process."""
self.build()
diff --git a/lldb/test/API/macosx/corefile-exception-reason/TestCorefileExceptionReason.py b/lldb/test/API/macosx/corefile-exception-reason/TestCorefileExceptionReason.py
index 90082e8273076..2378560bc60a8 100644
--- a/lldb/test/API/macosx/corefile-exception-reason/TestCorefileExceptionReason.py
+++ b/lldb/test/API/macosx/corefile-exception-reason/TestCorefileExceptionReason.py
@@ -12,7 +12,7 @@
class TestCorefileExceptionReason(TestBase):
@no_debug_info_test
- @requireDarwin
+ @requireDarwin()
@skipIf(archs=no_match(["arm64", "arm64e"]))
@skipIfRemote
def test(self):
diff --git a/lldb/test/API/macosx/corefile-unparseable-binary/TestCorefileUnparseableBinary.py b/lldb/test/API/macosx/corefile-unparseable-binary/TestCorefileUnparseableBinary.py
index 1e1f65d8293dd..b9a06c47c9567 100644
--- a/lldb/test/API/macosx/corefile-unparseable-binary/TestCorefileUnparseableBinary.py
+++ b/lldb/test/API/macosx/corefile-unparseable-binary/TestCorefileUnparseableBinary.py
@@ -13,7 +13,7 @@
class TestCorefileUnparseableBinary(TestBase):
@no_debug_info_test
- @requireDarwin
+ @requireDarwin()
@skipIfRemote
def test(self):
self.build()
diff --git a/lldb/test/API/macosx/ctf/TestCTF.py b/lldb/test/API/macosx/ctf/TestCTF.py
index 6f1f4354ecc7e..826deefaf5f8c 100644
--- a/lldb/test/API/macosx/ctf/TestCTF.py
+++ b/lldb/test/API/macosx/ctf/TestCTF.py
@@ -21,14 +21,14 @@ def no_objcopy(self):
@skipTestIfFn(no_ctf_convert)
@skipTestIfFn(no_objcopy)
- @requireDarwin
+ @requireDarwin()
def test(self):
self.build()
self.do_test()
@skipTestIfFn(no_ctf_convert)
@skipTestIfFn(no_objcopy)
- @requireDarwin
+ @requireDarwin()
def test_compressed(self):
self.build(dictionary={"COMPRESS_CTF": "YES"})
self.do_test()
diff --git a/lldb/test/API/macosx/debugserver-exit-code/TestDebugServerExitCode.py b/lldb/test/API/macosx/debugserver-exit-code/TestDebugServerExitCode.py
index 56f653dab6567..86848ead88801 100644
--- a/lldb/test/API/macosx/debugserver-exit-code/TestDebugServerExitCode.py
+++ b/lldb/test/API/macosx/debugserver-exit-code/TestDebugServerExitCode.py
@@ -10,7 +10,7 @@
class TestCase(TestBase):
@no_debug_info_test
- @requireDarwin
+ @requireDarwin()
def test_abort(self):
self.build()
target = self.dbg.CreateTarget(self.getBuildArtifact("a.out"))
diff --git a/lldb/test/API/macosx/debugserver-multimemread/TestDebugserverMultiMemRead.py b/lldb/test/API/macosx/debugserver-multimemread/TestDebugserverMultiMemRead.py
index c0f044fb7eb69..50c5740b1f386 100644
--- a/lldb/test/API/macosx/debugserver-multimemread/TestDebugserverMultiMemRead.py
+++ b/lldb/test/API/macosx/debugserver-multimemread/TestDebugserverMultiMemRead.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireDarwin
+ at requireDarwin()
class TestCase(TestBase):
def check_invalid_packet(self, packet_str):
reply = lldbutil.send_packet_get_reply(self, "packet_str")
diff --git a/lldb/test/API/macosx/delay-init-dependency/TestDelayInitDependency.py b/lldb/test/API/macosx/delay-init-dependency/TestDelayInitDependency.py
index 6c91ee48d2e5e..0cebb6989c496 100644
--- a/lldb/test/API/macosx/delay-init-dependency/TestDelayInitDependency.py
+++ b/lldb/test/API/macosx/delay-init-dependency/TestDelayInitDependency.py
@@ -10,7 +10,7 @@
class TestDelayInitDependencies(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
@skipIf(macos_version=["<", "15.0"])
@skipIfRemote
def test_delay_init_dependency(self):
diff --git a/lldb/test/API/macosx/deny-attach/TestDenyAttach.py b/lldb/test/API/macosx/deny-attach/TestDenyAttach.py
index 6298a03777203..ec97492581d37 100644
--- a/lldb/test/API/macosx/deny-attach/TestDenyAttach.py
+++ b/lldb/test/API/macosx/deny-attach/TestDenyAttach.py
@@ -8,7 +8,7 @@
class DenyAttachTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
@skipIfDarwinEmbedded # PT_DENY_ATTACH attach behavior differs on ios/tvos/etc
@skipIfAsan # Attach tests time out inconsistently under asan.
@skipIfOutOfTreeDebugserver
diff --git a/lldb/test/API/macosx/dsym_codesign/TestdSYMCodesign.py b/lldb/test/API/macosx/dsym_codesign/TestdSYMCodesign.py
index 971a6f006d47f..062a2454e80e8 100644
--- a/lldb/test/API/macosx/dsym_codesign/TestdSYMCodesign.py
+++ b/lldb/test/API/macosx/dsym_codesign/TestdSYMCodesign.py
@@ -28,7 +28,7 @@ def has_lldb_codesign():
return False
- at requireDarwin
+ at requireDarwin()
class TestdSYMCodesign(TestBase):
NO_DEBUG_INFO_TESTCASE = True
SHARED_BUILD_TESTCASE = False
diff --git a/lldb/test/API/macosx/dsym_modules/TestdSYMModuleInit.py b/lldb/test/API/macosx/dsym_modules/TestdSYMModuleInit.py
index c3ced18dcf049..e2e38188f7ac3 100644
--- a/lldb/test/API/macosx/dsym_modules/TestdSYMModuleInit.py
+++ b/lldb/test/API/macosx/dsym_modules/TestdSYMModuleInit.py
@@ -11,7 +11,7 @@
from lldbsuite.test.decorators import *
- at requireDarwin
+ at requireDarwin()
class TestdSYMModuleInit(TestBase):
SHARED_BUILD_TESTCASE = False
diff --git a/lldb/test/API/macosx/dyld-trie-symbols/TestDyldTrieSymbols.py b/lldb/test/API/macosx/dyld-trie-symbols/TestDyldTrieSymbols.py
index 369d9dabbe240..e5ef1a6d242b4 100644
--- a/lldb/test/API/macosx/dyld-trie-symbols/TestDyldTrieSymbols.py
+++ b/lldb/test/API/macosx/dyld-trie-symbols/TestDyldTrieSymbols.py
@@ -12,7 +12,7 @@ class DyldTrieSymbolsTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_dyld_trie_symbols(self):
"""Test that we make create symbol table entries from the dyld trie data structure."""
self.build()
diff --git a/lldb/test/API/macosx/early-process-launch/TestEarlyProcessLaunch.py b/lldb/test/API/macosx/early-process-launch/TestEarlyProcessLaunch.py
index 63a77b89c85de..660ad94ba5501 100644
--- a/lldb/test/API/macosx/early-process-launch/TestEarlyProcessLaunch.py
+++ b/lldb/test/API/macosx/early-process-launch/TestEarlyProcessLaunch.py
@@ -10,7 +10,7 @@
class TestEarlyProcessLaunch(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
@skipIfAsan # rdar://103359354
# until this feature is included in the system
# debugserver.
diff --git a/lldb/test/API/macosx/expedited-stack-memory/TestExpeditedStackMemory.py b/lldb/test/API/macosx/expedited-stack-memory/TestExpeditedStackMemory.py
index 6bb64b1e6c6ee..140bca39d3fe3 100644
--- a/lldb/test/API/macosx/expedited-stack-memory/TestExpeditedStackMemory.py
+++ b/lldb/test/API/macosx/expedited-stack-memory/TestExpeditedStackMemory.py
@@ -36,18 +36,18 @@
class TestExpeditedStackMemory(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
def test_no_packets_during_backtrace(self):
"""With the memory cache on, the backtrace sends no packets at all."""
self.check_packets_during_backtrace(disable_memory_cache=False)
- @requireDarwin
+ @requireDarwin()
def test_memory_reads_during_backtrace_without_cache(self):
"""With the memory cache off, the backtrace reads the backchain from the
stub, producing memory-read packets."""
self.check_packets_during_backtrace(disable_memory_cache=True)
- @requireDarwin
+ @requireDarwin()
def test_memory_reads_when_examining_frame0_locals(self):
"""Model an IDE stop: walk the whole stack (a backtrace / debug
navigator) but examine the locals of only the selected frame 0.
@@ -58,7 +58,7 @@ def test_memory_reads_when_examining_frame0_locals(self):
examine_all_frames=False, expect_stack_reads=False
)
- @requireDarwin
+ @requireDarwin()
def test_memory_reads_when_examining_all_frames_locals(self):
"""Model "view all frames": walk the whole stack and examine every
frame's locals. Only the stopped frame's stack is expedited, so the
diff --git a/lldb/test/API/macosx/expedited-thread-pcs/TestExpeditedThreadPCs.py b/lldb/test/API/macosx/expedited-thread-pcs/TestExpeditedThreadPCs.py
index c1871d0949833..059afc00f1c94 100644
--- a/lldb/test/API/macosx/expedited-thread-pcs/TestExpeditedThreadPCs.py
+++ b/lldb/test/API/macosx/expedited-thread-pcs/TestExpeditedThreadPCs.py
@@ -12,7 +12,7 @@
class TestExpeditedThreadPCs(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
def test_expedited_thread_pcs(self):
TestBase.setUp(self)
diff --git a/lldb/test/API/macosx/extended-backtrace-api/TestExtendedBacktraceAPI.py b/lldb/test/API/macosx/extended-backtrace-api/TestExtendedBacktraceAPI.py
index 4f649ac43c91a..26d305e95ce4c 100644
--- a/lldb/test/API/macosx/extended-backtrace-api/TestExtendedBacktraceAPI.py
+++ b/lldb/test/API/macosx/extended-backtrace-api/TestExtendedBacktraceAPI.py
@@ -15,7 +15,7 @@ def setUp(self):
TestBase.setUp(self)
self.main_source = "main.m"
- @requireDarwin
+ @requireDarwin()
@add_test_categories(["objc", "pyapi"])
def test_extended_backtrace_thread_api(self):
"""Test GetExtendedBacktraceThread with queue debugging."""
diff --git a/lldb/test/API/macosx/find-app-in-bundle/TestFindAppInBundle.py b/lldb/test/API/macosx/find-app-in-bundle/TestFindAppInBundle.py
index af2a67e3332d0..4bfa8756c0191 100644
--- a/lldb/test/API/macosx/find-app-in-bundle/TestFindAppInBundle.py
+++ b/lldb/test/API/macosx/find-app-in-bundle/TestFindAppInBundle.py
@@ -9,7 +9,7 @@
from lldbsuite.test.lldbtest import *
- at decorators.requireDarwin
+ at decorators.requireDarwin()
class FindAppInMacOSAppBundle(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/macosx/find-dsym/bundle-with-dot-in-filename/TestBundleWithDotInFilename.py b/lldb/test/API/macosx/find-dsym/bundle-with-dot-in-filename/TestBundleWithDotInFilename.py
index bbc1c42c69a59..77dc701b1ea35 100644
--- a/lldb/test/API/macosx/find-dsym/bundle-with-dot-in-filename/TestBundleWithDotInFilename.py
+++ b/lldb/test/API/macosx/find-dsym/bundle-with-dot-in-filename/TestBundleWithDotInFilename.py
@@ -26,7 +26,7 @@ def tearDown(self):
TestBase.tearDown(self)
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
# This test is explicitly a dSYM test, it doesn't need to run for any other config.
@skipIf(debug_info=no_match(["dsym"]))
def test_attach_and_check_dsyms(self):
diff --git a/lldb/test/API/macosx/find-dsym/deep-bundle/TestDeepBundle.py b/lldb/test/API/macosx/find-dsym/deep-bundle/TestDeepBundle.py
index 6694211846782..5bfdcea8ec7dc 100644
--- a/lldb/test/API/macosx/find-dsym/deep-bundle/TestDeepBundle.py
+++ b/lldb/test/API/macosx/find-dsym/deep-bundle/TestDeepBundle.py
@@ -25,7 +25,7 @@ def tearDown(self):
TestBase.tearDown(self)
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
# This test is explicitly a dSYM test, it doesn't need to run for any other config.
@skipIf(debug_info=no_match(["dsym"]))
def test_attach_and_check_dsyms(self):
diff --git a/lldb/test/API/macosx/format/TestFunctionNameWithoutArgs.py b/lldb/test/API/macosx/format/TestFunctionNameWithoutArgs.py
index 5ccc422563bf0..19d7f0e5083c4 100644
--- a/lldb/test/API/macosx/format/TestFunctionNameWithoutArgs.py
+++ b/lldb/test/API/macosx/format/TestFunctionNameWithoutArgs.py
@@ -4,7 +4,7 @@
class TestFunctionNameWithoutArgs(TestBase):
- @requireDarwin
+ @requireDarwin()
@no_debug_info_test
def test_function_name_without_args(self):
self.build()
diff --git a/lldb/test/API/macosx/function-starts/TestFunctionStarts.py b/lldb/test/API/macosx/function-starts/TestFunctionStarts.py
index 964df524c6be2..624ebbb629685 100644
--- a/lldb/test/API/macosx/function-starts/TestFunctionStarts.py
+++ b/lldb/test/API/macosx/function-starts/TestFunctionStarts.py
@@ -16,7 +16,7 @@ class FunctionStartsTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
@skipIf(compiler="clang", compiler_version=["<", "13.0"])
def test_function_starts_binary(self):
"""Test that we make synthetic symbols when we have the binary."""
@@ -24,7 +24,7 @@ def test_function_starts_binary(self):
self.do_function_starts(False)
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
@skipIf(compiler="clang", compiler_version=["<", "13.0"])
def test_function_starts_no_binary(self):
"""Test that we make synthetic symbols when we don't have the binary"""
diff --git a/lldb/test/API/macosx/ignore_exceptions/TestIgnoredExceptions.py b/lldb/test/API/macosx/ignore_exceptions/TestIgnoredExceptions.py
index a3c3c6f80b639..eae7efad395e4 100644
--- a/lldb/test/API/macosx/ignore_exceptions/TestIgnoredExceptions.py
+++ b/lldb/test/API/macosx/ignore_exceptions/TestIgnoredExceptions.py
@@ -12,7 +12,7 @@
class TestDarwinSignalHandlers(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
def test_ignored_thread(self):
"""It isn't possible to convert an EXC_BAD_ACCESS to a signal when
running under the debugger, which makes debugging SIGBUS handlers
diff --git a/lldb/test/API/macosx/indirect_symbol/TestIndirectSymbols.py b/lldb/test/API/macosx/indirect_symbol/TestIndirectSymbols.py
index 087c90a18b5a0..deb286b722d02 100644
--- a/lldb/test/API/macosx/indirect_symbol/TestIndirectSymbols.py
+++ b/lldb/test/API/macosx/indirect_symbol/TestIndirectSymbols.py
@@ -14,7 +14,7 @@ def setUp(self):
# Find the line numbers that we will step to in main:
self.main_source = "main.c"
- @requireDarwin
+ @requireDarwin()
@add_test_categories(["pyapi"])
@skipIf(bugnumber="rdar://120796553")
def test_with_python_api(self):
diff --git a/lldb/test/API/macosx/lc-note/additional-registers/TestMetadataRegisters.py b/lldb/test/API/macosx/lc-note/additional-registers/TestMetadataRegisters.py
index 78046125860bf..7a3cf26066add 100644
--- a/lldb/test/API/macosx/lc-note/additional-registers/TestMetadataRegisters.py
+++ b/lldb/test/API/macosx/lc-note/additional-registers/TestMetadataRegisters.py
@@ -13,7 +13,7 @@
class TestMetadataRegisters(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
@skipIfRemote
def test_add_registers_via_metadata(self):
self.build()
diff --git a/lldb/test/API/macosx/lc-note/addrable-bits/TestAddrableBitsCorefile.py b/lldb/test/API/macosx/lc-note/addrable-bits/TestAddrableBitsCorefile.py
index 7e1312a407dcb..c97dc12ce0ee7 100644
--- a/lldb/test/API/macosx/lc-note/addrable-bits/TestAddrableBitsCorefile.py
+++ b/lldb/test/API/macosx/lc-note/addrable-bits/TestAddrableBitsCorefile.py
@@ -20,7 +20,7 @@ def initial_setup(self):
self.corefile = self.getBuildArtifact("corefile")
@skipIf(archs=no_match(["arm64e"]))
- @requireDarwin
+ @requireDarwin()
def test_lc_note_addrable_bits(self):
self.initial_setup()
diff --git a/lldb/test/API/macosx/lc-note/firmware-corefile/TestFirmwareCorefiles.py b/lldb/test/API/macosx/lc-note/firmware-corefile/TestFirmwareCorefiles.py
index 14735a0052549..b7281f42c07cf 100644
--- a/lldb/test/API/macosx/lc-note/firmware-corefile/TestFirmwareCorefiles.py
+++ b/lldb/test/API/macosx/lc-note/firmware-corefile/TestFirmwareCorefiles.py
@@ -20,7 +20,7 @@ class TestFirmwareCorefiles(TestBase):
)
@skipIf(archs=no_match(["x86_64", "arm64", "arm64e", "aarch64"]))
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_lc_note_version_string(self):
self.build()
aout_exe_basename = "a.out"
@@ -120,7 +120,7 @@ def test_lc_note_version_string(self):
)
@skipIf(archs=no_match(["x86_64", "arm64", "arm64e", "aarch64"]))
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_lc_note_main_bin_spec(self):
self.build()
aout_exe_basename = "a.out"
@@ -233,7 +233,7 @@ def test_lc_note_main_bin_spec(self):
)
@skipIf(archs=no_match(["x86_64", "arm64", "arm64e", "aarch64"]))
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_lc_note_main_bin_spec_os_plugin(self):
self.build()
aout_exe = self.getBuildArtifact("a.out")
diff --git a/lldb/test/API/macosx/lc-note/kern-ver-str/TestKernVerStrLCNOTE.py b/lldb/test/API/macosx/lc-note/kern-ver-str/TestKernVerStrLCNOTE.py
index b2d5dfe3e3b3f..f712be599b260 100644
--- a/lldb/test/API/macosx/lc-note/kern-ver-str/TestKernVerStrLCNOTE.py
+++ b/lldb/test/API/macosx/lc-note/kern-ver-str/TestKernVerStrLCNOTE.py
@@ -17,7 +17,7 @@ class TestKernVerStrLCNOTE(TestBase):
bugnumber="This test is looking explicitly for a dSYM",
)
@skipIf(archs=no_match(["x86_64"]))
- @requireDarwin
+ @requireDarwin()
def test_lc_note(self):
self.build()
self.test_exe = self.getBuildArtifact("a.out")
diff --git a/lldb/test/API/macosx/lc-note/multiple-binary-corefile/TestMultipleBinaryCorefile.py b/lldb/test/API/macosx/lc-note/multiple-binary-corefile/TestMultipleBinaryCorefile.py
index 96553a866bb43..03d21caed3739 100644
--- a/lldb/test/API/macosx/lc-note/multiple-binary-corefile/TestMultipleBinaryCorefile.py
+++ b/lldb/test/API/macosx/lc-note/multiple-binary-corefile/TestMultipleBinaryCorefile.py
@@ -82,7 +82,7 @@ def load_corefile_and_test(self):
@skipIf(archs=no_match(["x86_64", "arm64", "arm64e", "aarch64"]))
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_corefile_binaries_dsymforuuid(self):
self.initial_setup()
@@ -198,7 +198,7 @@ def test_corefile_binaries_dsymforuuid(self):
@skipIf(archs=no_match(["x86_64", "arm64", "arm64e", "aarch64"]))
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_corefile_binaries_serial_search(self):
"""The corefile's binaries are searched for in parallel by default.
Searching for them one at a time has to give the same answer, in the
@@ -223,7 +223,7 @@ def test_corefile_binaries_serial_search(self):
@skipIf(archs=no_match(["x86_64", "arm64", "arm64e", "aarch64"]))
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_corefile_binaries_preloaded(self):
self.initial_setup()
diff --git a/lldb/test/API/macosx/macCatalyst/TestMacCatalyst.py b/lldb/test/API/macosx/macCatalyst/TestMacCatalyst.py
index 54a2596e85834..33e0f25de565f 100644
--- a/lldb/test/API/macosx/macCatalyst/TestMacCatalyst.py
+++ b/lldb/test/API/macosx/macCatalyst/TestMacCatalyst.py
@@ -10,7 +10,7 @@ class TestMacCatalyst(TestBase):
SHARED_BUILD_TESTCASE = False
@skipIf(macos_version=["<", "10.15"])
- @requireDarwin
+ @requireDarwin()
@skipIfDarwinEmbedded
def test_macabi(self):
"""Test the x86_64-apple-ios-macabi target linked against a macos dylib"""
diff --git a/lldb/test/API/macosx/macCatalystAppMacOSFramework/TestMacCatalystAppWithMacOSFramework.py b/lldb/test/API/macosx/macCatalystAppMacOSFramework/TestMacCatalystAppWithMacOSFramework.py
index 3238d316d1ab5..3d313bb422a70 100644
--- a/lldb/test/API/macosx/macCatalystAppMacOSFramework/TestMacCatalystAppWithMacOSFramework.py
+++ b/lldb/test/API/macosx/macCatalystAppMacOSFramework/TestMacCatalystAppWithMacOSFramework.py
@@ -7,7 +7,7 @@
class TestMacCatalystAppWithMacOSFramework(TestBase):
@skipIf(macos_version=["<", "10.15"])
- @requireDarwin
+ @requireDarwin()
@skipIfDarwinEmbedded
# There is a Clang driver change missing on llvm.org.
@expectedFailureAll(bugnumber="rdar://problem/54986190>")
diff --git a/lldb/test/API/macosx/no-nlist-memory-module/TestNoNlistsDylib.py b/lldb/test/API/macosx/no-nlist-memory-module/TestNoNlistsDylib.py
index 670722e91fb53..660f2fb2a2303 100644
--- a/lldb/test/API/macosx/no-nlist-memory-module/TestNoNlistsDylib.py
+++ b/lldb/test/API/macosx/no-nlist-memory-module/TestNoNlistsDylib.py
@@ -15,7 +15,7 @@ class NoNlistsTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
def test_no_nlist_symbols(self):
self.build()
diff --git a/lldb/test/API/macosx/nslog/TestDarwinNSLogOutput.py b/lldb/test/API/macosx/nslog/TestDarwinNSLogOutput.py
index 7e947935ffd56..db52f52c75332 100644
--- a/lldb/test/API/macosx/nslog/TestDarwinNSLogOutput.py
+++ b/lldb/test/API/macosx/nslog/TestDarwinNSLogOutput.py
@@ -120,7 +120,7 @@ def do_test(self, expect_regexes=None, settings_commands=None):
@skipIfAsan # avoid dealing with pexpect timeout flakyness on bots
@skipIf(oslist=["linux"], archs=["arm$", "aarch64"])
- @requireDarwin
+ @requireDarwin()
@skipIfRemote # this test is currently written using lldb commands & assumes running on local system
def test_nslog_output_is_displayed(self):
"""Test that NSLog() output shows up in the command-line debugger."""
@@ -136,7 +136,7 @@ def test_nslog_output_is_displayed(self):
@skipIfAsan # avoid dealing with pexpect timeout flakyness on bots
@skipIf(oslist=["linux"], archs=["arm$", "aarch64"])
- @requireDarwin
+ @requireDarwin()
@skipIfRemote # this test is currently written using lldb commands & assumes running on local system
def test_nslog_output_is_suppressed_with_env_var(self):
"""Test that NSLog() output does not show up with the ignore env var."""
diff --git a/lldb/test/API/macosx/objc_exception_recognizer/TestObjCRecognizer.py b/lldb/test/API/macosx/objc_exception_recognizer/TestObjCRecognizer.py
index f973b7b9c09fc..ce3716c46ee8f 100644
--- a/lldb/test/API/macosx/objc_exception_recognizer/TestObjCRecognizer.py
+++ b/lldb/test/API/macosx/objc_exception_recognizer/TestObjCRecognizer.py
@@ -11,14 +11,14 @@
class TestObjCRecognizer(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
def test_exception_recognizer_sub_class(self):
"""There can be many tests in a test case - describe this test here."""
self.build()
self.main_source_file = lldb.SBFileSpec("main.m")
self.objc_recognizer_test(True)
- @requireDarwin
+ @requireDarwin()
def test_exception_recognizer_plain(self):
"""There can be many tests in a test case - describe this test here."""
self.build()
diff --git a/lldb/test/API/macosx/order/TestOrderFile.py b/lldb/test/API/macosx/order/TestOrderFile.py
index 2f6f0e8f2d62e..180dab59145bf 100644
--- a/lldb/test/API/macosx/order/TestOrderFile.py
+++ b/lldb/test/API/macosx/order/TestOrderFile.py
@@ -11,7 +11,7 @@
class OrderFileTestCase(TestBase):
- @requireDarwin
+ @requireDarwin()
def test(self):
"""Test debug symbols follow the correct order by the order file."""
self.build()
diff --git a/lldb/test/API/macosx/posix_spawn/TestLaunchProcessPosixSpawn.py b/lldb/test/API/macosx/posix_spawn/TestLaunchProcessPosixSpawn.py
index a74f34154bf92..fb2ffb2635826 100644
--- a/lldb/test/API/macosx/posix_spawn/TestLaunchProcessPosixSpawn.py
+++ b/lldb/test/API/macosx/posix_spawn/TestLaunchProcessPosixSpawn.py
@@ -49,7 +49,7 @@ def run_arch(self, exe, arch):
self.assertState(process.GetState(), lldb.eStateExited)
self.assertIn("slice: {}".format(arch), process.GetSTDOUT(1000))
- @requireDarwin
+ @requireDarwin()
@skipIfDarwinEmbedded
@skipIfLLVMTargetMissing("AArch64")
@skipIfLLVMTargetMissing("X86")
@@ -60,7 +60,7 @@ def test_haswell(self):
self.run_arch(exe, "x86_64")
self.run_arch(exe, "x86_64h")
- @requireDarwin
+ @requireDarwin()
@skipIf(bugnumber="rdar://170040996")
@skipIfDarwinEmbedded
@skipIfLLVMTargetMissing("AArch64")
diff --git a/lldb/test/API/macosx/profile_vrs_detach/TestDetachVrsProfile.py b/lldb/test/API/macosx/profile_vrs_detach/TestDetachVrsProfile.py
index ca740a1771cd0..2693f9b71d8f1 100644
--- a/lldb/test/API/macosx/profile_vrs_detach/TestDetachVrsProfile.py
+++ b/lldb/test/API/macosx/profile_vrs_detach/TestDetachVrsProfile.py
@@ -18,7 +18,7 @@
class TestDetachVrsProfile(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
@skipIfRemote
def test_profile_and_detach(self):
"""There can be many tests in a test case - describe this test here."""
diff --git a/lldb/test/API/macosx/queues/TestQueues.py b/lldb/test/API/macosx/queues/TestQueues.py
index 91f9c5b15146b..a1d8cceb5b4ee 100644
--- a/lldb/test/API/macosx/queues/TestQueues.py
+++ b/lldb/test/API/macosx/queues/TestQueues.py
@@ -9,20 +9,20 @@
class TestQueues(TestBase):
- @requireDarwin
+ @requireDarwin()
@add_test_categories(["pyapi"])
def test_with_python_api_queues(self):
"""Test queues inspection SB APIs."""
self.build()
self.queues()
- @requireDarwin
+ @requireDarwin()
@add_test_categories(["pyapi"])
def test_queue_specific_breakpoints(self):
self.build()
self.queue_specific_breakpoints()
- @requireDarwin
+ @requireDarwin()
@add_test_categories(["pyapi"])
def test_with_python_api_queues_with_backtrace(self):
"""Test queues inspection SB APIs."""
diff --git a/lldb/test/API/macosx/safe-to-func-call/TestSafeFuncCalls.py b/lldb/test/API/macosx/safe-to-func-call/TestSafeFuncCalls.py
index 789bb4bc11bd9..a0daa0d82614b 100644
--- a/lldb/test/API/macosx/safe-to-func-call/TestSafeFuncCalls.py
+++ b/lldb/test/API/macosx/safe-to-func-call/TestSafeFuncCalls.py
@@ -8,7 +8,7 @@
class TestSafeFuncCalls(TestBase):
- @requireDarwin
+ @requireDarwin()
@add_test_categories(["pyapi"])
def test_with_python_api(self):
"""Test function call thread safety."""
diff --git a/lldb/test/API/macosx/save_crashlog/TestSaveCrashlog.py b/lldb/test/API/macosx/save_crashlog/TestSaveCrashlog.py
index 7c4a94b495ca7..2990e45ed4a81 100644
--- a/lldb/test/API/macosx/save_crashlog/TestSaveCrashlog.py
+++ b/lldb/test/API/macosx/save_crashlog/TestSaveCrashlog.py
@@ -16,7 +16,7 @@ class TestSaveCrashlog(TestBase):
# each debug info format.
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
def test_save_crashlog(self):
"""There can be many tests in a test case - describe this test here."""
self.build()
diff --git a/lldb/test/API/macosx/shared-cache-host-memory/TestSharedCacheHostMemory.py b/lldb/test/API/macosx/shared-cache-host-memory/TestSharedCacheHostMemory.py
index 87d632bff64cf..72787279ba2bc 100644
--- a/lldb/test/API/macosx/shared-cache-host-memory/TestSharedCacheHostMemory.py
+++ b/lldb/test/API/macosx/shared-cache-host-memory/TestSharedCacheHostMemory.py
@@ -7,7 +7,7 @@
class SharedCacheHostMemoryTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
@skipIfRemote
def test_host_lldb_memory(self):
"""Stop in a shared cache binary loaded from lldb's own memory and
diff --git a/lldb/test/API/macosx/shared-cache-vm-range/TestSharedCacheVMRange.py b/lldb/test/API/macosx/shared-cache-vm-range/TestSharedCacheVMRange.py
index f823ef6b24e1b..abce63f4b6978 100644
--- a/lldb/test/API/macosx/shared-cache-vm-range/TestSharedCacheVMRange.py
+++ b/lldb/test/API/macosx/shared-cache-vm-range/TestSharedCacheVMRange.py
@@ -14,7 +14,7 @@ class SharedCacheVMRangeTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
@skipIfRemote
- @requireDarwin
+ @requireDarwin()
@skipIfOutOfTreeDebugserver # debugserver returns shared_cache_size
def test_shared_cache_vm_range(self):
"""Test that the shared cache VM range contains a known libc function"""
diff --git a/lldb/test/API/macosx/simulator/TestSimulatorPlatform.py b/lldb/test/API/macosx/simulator/TestSimulatorPlatform.py
index 14d3f0ba511df..27e3534fca5f3 100644
--- a/lldb/test/API/macosx/simulator/TestSimulatorPlatform.py
+++ b/lldb/test/API/macosx/simulator/TestSimulatorPlatform.py
@@ -99,7 +99,7 @@ def run_with(self, arch, os, vers, env, expected_platform=None):
)
@skipIfAsan
- @requireDarwin
+ @requireDarwin()
@skipIfDarwinEmbedded
@apple_simulator_test("iphone")
@skipIf(archs=["x86_64"])
@@ -114,7 +114,7 @@ def test_ios(self):
)
@skipIfAsan
- @requireDarwin
+ @requireDarwin()
@skipIfDarwinEmbedded
@apple_simulator_test("appletv")
@skipIf(archs=["x86_64"])
diff --git a/lldb/test/API/macosx/skinny-corefile/TestSkinnyCorefile.py b/lldb/test/API/macosx/skinny-corefile/TestSkinnyCorefile.py
index 2a4654c66e4c2..0df95783b50e8 100644
--- a/lldb/test/API/macosx/skinny-corefile/TestSkinnyCorefile.py
+++ b/lldb/test/API/macosx/skinny-corefile/TestSkinnyCorefile.py
@@ -18,7 +18,7 @@ class TestSkinnyCorefile(TestBase):
debug_info=no_match(["dsym"]),
bugnumber="This test is looking explicitly for a dSYM",
)
- @requireDarwin
+ @requireDarwin()
@skipIfRemote
def test_lc_note(self):
self.build()
diff --git a/lldb/test/API/macosx/sme-registers/TestSMERegistersDarwin.py b/lldb/test/API/macosx/sme-registers/TestSMERegistersDarwin.py
index 14588478300cc..404702456bef1 100644
--- a/lldb/test/API/macosx/sme-registers/TestSMERegistersDarwin.py
+++ b/lldb/test/API/macosx/sme-registers/TestSMERegistersDarwin.py
@@ -10,7 +10,7 @@ class TestSMERegistersDarwin(TestBase):
NO_DEBUG_INFO_TESTCASE = True
mydir = TestBase.compute_mydir(__file__)
- @requireDarwin
+ @requireDarwin()
@skipUnlessFeature(cpu_feature.AArch64.SME)
@skipUnlessFeature(cpu_feature.AArch64.SME2)
# thread_set_state/thread_get_state only avail in macOS 15.4+
diff --git a/lldb/test/API/macosx/stack-corefile/TestStackCorefile.py b/lldb/test/API/macosx/stack-corefile/TestStackCorefile.py
index de79e4a79b190..3208998597a73 100644
--- a/lldb/test/API/macosx/stack-corefile/TestStackCorefile.py
+++ b/lldb/test/API/macosx/stack-corefile/TestStackCorefile.py
@@ -12,7 +12,7 @@
class TestStackCorefile(TestBase):
@no_debug_info_test
- @requireDarwin
+ @requireDarwin()
@skipIfRemote
def test(self):
corefile = self.getBuildArtifact("process.core")
diff --git a/lldb/test/API/macosx/stop-reason-exception/TestMachExceptionData.py b/lldb/test/API/macosx/stop-reason-exception/TestMachExceptionData.py
index a069cf35f889c..1cb563f3f9ceb 100644
--- a/lldb/test/API/macosx/stop-reason-exception/TestMachExceptionData.py
+++ b/lldb/test/API/macosx/stop-reason-exception/TestMachExceptionData.py
@@ -12,7 +12,7 @@
class TestMachExceptionData(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
def test_exc_bad_access(self):
"""Test that we get type 1, code 1 and the right address for
a EXC_BAD_ACCESS mach exception."""
diff --git a/lldb/test/API/macosx/tbi-honored/TestTBIHonored.py b/lldb/test/API/macosx/tbi-honored/TestTBIHonored.py
index f7d33ed5c8c6d..419c10320c4d6 100644
--- a/lldb/test/API/macosx/tbi-honored/TestTBIHonored.py
+++ b/lldb/test/API/macosx/tbi-honored/TestTBIHonored.py
@@ -27,7 +27,7 @@ def do_variable_access_tests(self, frame):
# This test is valid on AArch64 systems with TBI mode enabled,
# and an address mask that clears the top byte before reading
# from memory.
- @requireDarwin
+ @requireDarwin()
@skipIf(archs=no_match(["arm64", "arm64e"]))
@skipIfRemote
def test(self):
diff --git a/lldb/test/API/macosx/thread-names/TestInterruptThreadNames.py b/lldb/test/API/macosx/thread-names/TestInterruptThreadNames.py
index 053e8ca8ac39a..24920adf8f521 100644
--- a/lldb/test/API/macosx/thread-names/TestInterruptThreadNames.py
+++ b/lldb/test/API/macosx/thread-names/TestInterruptThreadNames.py
@@ -11,7 +11,7 @@
class TestInterruptThreadNames(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
@add_test_categories(["pyapi"])
def test_with_python_api(self):
"""Test that we get thread names when interrupting a process."""
diff --git a/lldb/test/API/macosx/thread_start_bps/TestBreakpointsThreadInit.py b/lldb/test/API/macosx/thread_start_bps/TestBreakpointsThreadInit.py
index 17880ff926318..c8a1c587ef97a 100644
--- a/lldb/test/API/macosx/thread_start_bps/TestBreakpointsThreadInit.py
+++ b/lldb/test/API/macosx/thread_start_bps/TestBreakpointsThreadInit.py
@@ -8,7 +8,7 @@
class TestInterruptThreadNames(TestBase):
- @requireDarwin
+ @requireDarwin()
def test_internal_bps_resolved(self):
self.build()
@@ -36,7 +36,7 @@ def test_internal_bps_resolved(self):
num_resolved += bp.GetNumResolvedLocations()
self.assertGreater(num_resolved, 0)
- @requireDarwin
+ @requireDarwin()
def test_internal_bps_deleted_on_relaunch(self):
self.build()
diff --git a/lldb/test/API/macosx/thread_suspend/TestInternalThreadSuspension.py b/lldb/test/API/macosx/thread_suspend/TestInternalThreadSuspension.py
index cbc70150862d2..d6f36ba08103d 100644
--- a/lldb/test/API/macosx/thread_suspend/TestInternalThreadSuspension.py
+++ b/lldb/test/API/macosx/thread_suspend/TestInternalThreadSuspension.py
@@ -12,7 +12,7 @@
class TestSuspendedThreadHandling(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requireDarwin
+ @requireDarwin()
def test_suspended_threads(self):
"""Test that debugserver doesn't disturb the suspend count of a thread
that has been suspended from within a program, when navigating breakpoints
diff --git a/lldb/test/API/macosx/universal/TestUniversal.py b/lldb/test/API/macosx/universal/TestUniversal.py
index 2fe3ec115759a..ed43910f21387 100644
--- a/lldb/test/API/macosx/universal/TestUniversal.py
+++ b/lldb/test/API/macosx/universal/TestUniversal.py
@@ -23,7 +23,7 @@ def setUp(self):
self.line = line_number("main.c", "// Set break point at this line.")
@add_test_categories(["pyapi"])
- @requireDarwin
+ @requireDarwin()
@unittest.skipUnless(
hasattr(os, "uname") and os.uname()[4] in ["x86_64"], "requires x86_64"
)
@@ -49,7 +49,7 @@ def test_sbdebugger_create_target_with_file_and_target_triple(self):
process = target.LaunchSimple(None, None, self.get_process_working_directory())
self.assertTrue(process, PROCESS_IS_VALID)
- @requireDarwin
+ @requireDarwin()
@unittest.skipUnless(
hasattr(os, "uname") and os.uname()[4] in ["x86_64"], "requires x86_64"
)
@@ -112,7 +112,7 @@ def test_process_launch_for_universal(self):
self.expect("image list -A -b", substrs=["x86_64h testit"])
self.runCmd("continue")
- @requireDarwin
+ @requireDarwin()
@unittest.skipUnless(
hasattr(os, "uname") and os.uname()[4] in ["x86_64"], "requires x86_64"
)
diff --git a/lldb/test/API/macosx/universal64/TestUniversal64.py b/lldb/test/API/macosx/universal64/TestUniversal64.py
index f5a6a4cef9621..a8a7d76360602 100644
--- a/lldb/test/API/macosx/universal64/TestUniversal64.py
+++ b/lldb/test/API/macosx/universal64/TestUniversal64.py
@@ -20,7 +20,7 @@ def do_test(self):
# The Makefile manually invokes clang.
@skipIfLLVMTargetMissing("X86")
@skipIfAsan
- @requireDarwin
+ @requireDarwin()
@skipIfDarwinEmbedded
def test_universal64_executable(self):
"""Test fat64 universal executable"""
@@ -30,7 +30,7 @@ def test_universal64_executable(self):
# The Makefile manually invokes clang.
@skipIfLLVMTargetMissing("X86")
@skipIfAsan
- @requireDarwin
+ @requireDarwin()
@skipIfDarwinEmbedded
def test_universal64_dsym(self):
"""Test fat64 universal dSYM"""
diff --git a/lldb/test/API/macosx/unregistered-macho/TestUnregisteredMacho.py b/lldb/test/API/macosx/unregistered-macho/TestUnregisteredMacho.py
index 11ff1d4e1efa7..ca5c1c361bed5 100644
--- a/lldb/test/API/macosx/unregistered-macho/TestUnregisteredMacho.py
+++ b/lldb/test/API/macosx/unregistered-macho/TestUnregisteredMacho.py
@@ -14,7 +14,7 @@ class TestUnregisteredMacho(TestBase):
# newer debugserver required for jGetLoadedDynamicLibrariesInfos
# to support this
@no_debug_info_test
- @requireDarwin
+ @requireDarwin()
def test(self):
self.build()
target, process, thread, bkpt = lldbutil.run_to_source_breakpoint(
diff --git a/lldb/test/API/python_api/class_members/TestSBTypeClassMembers.py b/lldb/test/API/python_api/class_members/TestSBTypeClassMembers.py
index 17c2dedbf7df1..73dd0cc99436c 100644
--- a/lldb/test/API/python_api/class_members/TestSBTypeClassMembers.py
+++ b/lldb/test/API/python_api/class_members/TestSBTypeClassMembers.py
@@ -21,7 +21,7 @@ def setUp(self):
self.source = "main.mm"
self.line = line_number(self.source, "// set breakpoint here")
- @requireDarwin
+ @requireDarwin()
def test(self):
"""Test SBType APIs to fetch member function types."""
d = {"EXE": self.exe_name}
diff --git a/lldb/test/API/python_api/exprpath_synthetic/TestExprPathSynthetic.py b/lldb/test/API/python_api/exprpath_synthetic/TestExprPathSynthetic.py
index 376617786b25e..ba46f0c9ad05e 100644
--- a/lldb/test/API/python_api/exprpath_synthetic/TestExprPathSynthetic.py
+++ b/lldb/test/API/python_api/exprpath_synthetic/TestExprPathSynthetic.py
@@ -1,4 +1,4 @@
from lldbsuite.test import decorators
from lldbsuite.test import lldbinline
-lldbinline.MakeInlineTest(__file__, globals(), [decorators.requireDarwin])
+lldbinline.MakeInlineTest(__file__, globals(), [decorators.requireDarwin()])
diff --git a/lldb/test/API/python_api/lldbutil/iter/TestLLDBIterator.py b/lldb/test/API/python_api/lldbutil/iter/TestLLDBIterator.py
index 250a84359af26..3bef1185ab3d5 100644
--- a/lldb/test/API/python_api/lldbutil/iter/TestLLDBIterator.py
+++ b/lldb/test/API/python_api/lldbutil/iter/TestLLDBIterator.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class LLDBIteratorTestCase(TestBase):
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/API/python_api/lldbutil/iter/TestRegistersIterator.py b/lldb/test/API/python_api/lldbutil/iter/TestRegistersIterator.py
index 482496be199b3..9c4397d6aaa6e 100644
--- a/lldb/test/API/python_api/lldbutil/iter/TestRegistersIterator.py
+++ b/lldb/test/API/python_api/lldbutil/iter/TestRegistersIterator.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class RegistersIteratorTestCase(TestBase):
def setUp(self):
# Call super's setUp().
diff --git a/lldb/test/API/python_api/signals/TestSignalsAPI.py b/lldb/test/API/python_api/signals/TestSignalsAPI.py
index b20f0b67c5858..0209ab1453f63 100644
--- a/lldb/test/API/python_api/signals/TestSignalsAPI.py
+++ b/lldb/test/API/python_api/signals/TestSignalsAPI.py
@@ -10,7 +10,7 @@
from lldbsuite.test.lldbutil import get_stopped_thread, state_type_to_str
- at requireSignals
+ at requireSignals()
class SignalsAPITestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/python_api/target-arch-from-module/TestTargetArchFromModule.py b/lldb/test/API/python_api/target-arch-from-module/TestTargetArchFromModule.py
index 5b11f30fcbd1b..b7e341a740c67 100644
--- a/lldb/test/API/python_api/target-arch-from-module/TestTargetArchFromModule.py
+++ b/lldb/test/API/python_api/target-arch-from-module/TestTargetArchFromModule.py
@@ -18,7 +18,7 @@ class TargetArchFromModule(TestBase):
debug_info=no_match(["dsym"]),
bugnumber="This test is looking explicitly for a dSYM",
)
- @requireDarwin
+ @requireDarwin()
@skipIfRemote
def test_target_arch_init(self):
self.build()
diff --git a/lldb/test/API/python_api/watchpoint/watchlocation/TestSetWatchlocation.py b/lldb/test/API/python_api/watchpoint/watchlocation/TestSetWatchlocation.py
index 7895b8ccdc927..c5d589618be7a 100644
--- a/lldb/test/API/python_api/watchpoint/watchlocation/TestSetWatchlocation.py
+++ b/lldb/test/API/python_api/watchpoint/watchlocation/TestSetWatchlocation.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class SetWatchlocationAPITestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py b/lldb/test/API/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py
index 66bc138805b1b..cc51ce271a836 100644
--- a/lldb/test/API/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py
+++ b/lldb/test/API/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py
@@ -8,7 +8,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class TargetWatchpointCreateByAddressPITestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/qemu/TestQemuLaunch.py b/lldb/test/API/qemu/TestQemuLaunch.py
index 13e47101b430f..edc85d2776251 100644
--- a/lldb/test/API/qemu/TestQemuLaunch.py
+++ b/lldb/test/API/qemu/TestQemuLaunch.py
@@ -15,7 +15,7 @@
@skipIfWindows
@skipIf(archs=["arm64e"])
@requireNotWasm("no qemu-wasm32")
- at requireSocketPermission # the fake emulator listens on a unix socket
+ at requireSocketPermission("the fake emulator listens on a unix socket")
class TestQemuLaunch(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/tools/lldb-dap/attach/TestDAP_attachByPortNum.py b/lldb/test/API/tools/lldb-dap/attach/TestDAP_attachByPortNum.py
index 41e1f5875e97a..6be7685e5d27e 100644
--- a/lldb/test/API/tools/lldb-dap/attach/TestDAP_attachByPortNum.py
+++ b/lldb/test/API/tools/lldb-dap/attach/TestDAP_attachByPortNum.py
@@ -38,7 +38,7 @@ def create_debug_server_pipe(self):
@skipIfWindows
@skipIfNetBSD # Try enable, get_debug_server_path previously returned None.
- @requireSocketPermission # the debug server listens on the port we attach to
+ @requireSocketPermission("the debug server listens on the port we attach to")
def test_by_port(self):
"""Tests attaching to a process by port."""
program_path = self.build_for_attach()
diff --git a/lldb/test/API/tools/lldb-dap/exception/TestDAP_exception.py b/lldb/test/API/tools/lldb-dap/exception/TestDAP_exception.py
index cd560c6a36e46..29f5781df2a55 100644
--- a/lldb/test/API/tools/lldb-dap/exception/TestDAP_exception.py
+++ b/lldb/test/API/tools/lldb-dap/exception/TestDAP_exception.py
@@ -7,7 +7,7 @@
from lldbsuite.test.tools.lldb_dap.types import LaunchArgs
- at requireSignals
+ at requireSignals()
class TestDAP_exception(DAPTestCaseBase):
def test_stopped_description(self):
"""
diff --git a/lldb/test/API/tools/lldb-dap/exception/objc/TestDAP_exception_objc.py b/lldb/test/API/tools/lldb-dap/exception/objc/TestDAP_exception_objc.py
index 8a18c38586ea2..c36a7886949cd 100644
--- a/lldb/test/API/tools/lldb-dap/exception/objc/TestDAP_exception_objc.py
+++ b/lldb/test/API/tools/lldb-dap/exception/objc/TestDAP_exception_objc.py
@@ -8,7 +8,7 @@
class TestDAP_exception_objc(DAPTestCaseBase):
- @requireDarwin
+ @requireDarwin()
def test_stopped_description(self):
"""
Test that exception description is shown correctly in stopped event.
@@ -36,7 +36,7 @@ def test_stopped_description(self):
stack_trace = self.expect_not_none(exception_details.stackTrace)
self.assertRegex(stack_trace, "main.m")
- @requireDarwin
+ @requireDarwin()
def test_break_on_throw_and_catch(self):
"""
Test that breakpoints on exceptions work as expected.
diff --git a/lldb/test/API/tools/lldb-dap/extendedStackTrace/TestDAP_extendedStackTrace.py b/lldb/test/API/tools/lldb-dap/extendedStackTrace/TestDAP_extendedStackTrace.py
index c1b7c81abb194..673436d4b7423 100644
--- a/lldb/test/API/tools/lldb-dap/extendedStackTrace/TestDAP_extendedStackTrace.py
+++ b/lldb/test/API/tools/lldb-dap/extendedStackTrace/TestDAP_extendedStackTrace.py
@@ -42,7 +42,7 @@ def build_and_run_to_breakpoint(self, display_extended_backtrace: bool = True):
stop_event = session.verify_stopped_on_breakpoint(bp_id, after=cm.process_event)
return session, stop_event
- @requireDarwin
+ @requireDarwin()
def test_stackTrace(self):
"""Tests the 'stackTrace' packet on a thread with an extended backtrace."""
session, stop_event = self.build_and_run_to_breakpoint()
@@ -104,7 +104,7 @@ def test_stackTrace(self):
total_frames, i, "total frames should include a pagination offset"
)
- @requireDarwin
+ @requireDarwin()
def test_stackTraceWithFormat(self):
"""Tests the 'stackTrace' packet using stack trace formats."""
session, stop_event = self.build_and_run_to_breakpoint(
diff --git a/lldb/test/API/tools/lldb-dap/launch/TestDAP_launch_termination.py b/lldb/test/API/tools/lldb-dap/launch/TestDAP_launch_termination.py
index 13962b8cd47c0..67294380e72b3 100644
--- a/lldb/test/API/tools/lldb-dap/launch/TestDAP_launch_termination.py
+++ b/lldb/test/API/tools/lldb-dap/launch/TestDAP_launch_termination.py
@@ -14,7 +14,7 @@ class TestDAP_launch_termination(DAPTestCaseBase):
USE_DEFAULT_DEBUG_ADAPTER = False
- @requireSocketPermission
+ @requireSocketPermission()
def test_termination_socket(self):
adapter = self.create_server_debug_adapter(
connection="listen://localhost:0",
diff --git a/lldb/test/API/tools/lldb-dap/launch/TestDAP_launch_win_debug_heap.py b/lldb/test/API/tools/lldb-dap/launch/TestDAP_launch_win_debug_heap.py
index 7bbf0d0a70968..008ce1a144dc8 100644
--- a/lldb/test/API/tools/lldb-dap/launch/TestDAP_launch_win_debug_heap.py
+++ b/lldb/test/API/tools/lldb-dap/launch/TestDAP_launch_win_debug_heap.py
@@ -9,7 +9,7 @@
@skipIfBuildType(["debug"])
- at requireWindows
+ at requireWindows()
class TestDAP_launch_win_debug_heap(DAPTestCaseBase):
"""
Test that lldb-dap respects the debug heap setting on Windows when launching in an integrated terminal.
diff --git a/lldb/test/API/tools/lldb-dap/longpath/TestDAP_launch_longPath.py b/lldb/test/API/tools/lldb-dap/longpath/TestDAP_launch_longPath.py
index 49aaa329aaab3..4ff295f70afe3 100644
--- a/lldb/test/API/tools/lldb-dap/longpath/TestDAP_launch_longPath.py
+++ b/lldb/test/API/tools/lldb-dap/longpath/TestDAP_launch_longPath.py
@@ -14,7 +14,7 @@
MAX_PATH = 260
- at requireWindows
+ at requireWindows()
class TestDAP_launch_longPath(DAPTestCaseBase):
def _long_path(self, path):
return lldbutil.get_extended_windows_path(path)
diff --git a/lldb/test/API/tools/lldb-dap/memory/TestDAP_memory.py b/lldb/test/API/tools/lldb-dap/memory/TestDAP_memory.py
index d2422129afdc4..d58ac1836f55e 100644
--- a/lldb/test/API/tools/lldb-dap/memory/TestDAP_memory.py
+++ b/lldb/test/API/tools/lldb-dap/memory/TestDAP_memory.py
@@ -57,7 +57,7 @@ def test_memory_refs_set_variable(self):
self.assertIsNotNone(response.body.memoryReference)
@skipIfWindows
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test_readMemory(self):
"""Tests the `readMemory` request."""
session = self.build_and_create_session()
@@ -102,7 +102,7 @@ def test_readMemory(self):
# Flakey on 32-bit Arm Linux.
@skipIf(oslist=["linux"], archs=["arm$"])
- @requireExpressionEvaluation
+ @requireExpressionEvaluation()
def test_writeMemory(self):
"""Tests the `writeMemory` request."""
session = self.build_and_create_session()
diff --git a/lldb/test/API/tools/lldb-dap/module/TestDAP_module.py b/lldb/test/API/tools/lldb-dap/module/TestDAP_module.py
index 0b6c9b722904a..f9466784f92cc 100644
--- a/lldb/test/API/tools/lldb-dap/module/TestDAP_module.py
+++ b/lldb/test/API/tools/lldb-dap/module/TestDAP_module.py
@@ -112,7 +112,7 @@ def test_modules(self):
"a.out", expect_debug_info_size=platform.system() != "Darwin"
)
- @requireDarwin
+ @requireDarwin()
def test_modules_dsym(self):
"""
Darwin only test with dSYM file.
diff --git a/lldb/test/API/tools/lldb-dap/save-core/TestDAP_save_core.py b/lldb/test/API/tools/lldb-dap/save-core/TestDAP_save_core.py
index 92e4385db4005..1a4d80be3ed87 100644
--- a/lldb/test/API/tools/lldb-dap/save-core/TestDAP_save_core.py
+++ b/lldb/test/API/tools/lldb-dap/save-core/TestDAP_save_core.py
@@ -14,7 +14,7 @@ class TestDAP_save_core(DAPTestCaseBase):
SHARED_BUILD_TESTCASE = False
@skipUnlessArch("x86_64")
- @requireLinux
+ @requireLinux()
def test_save_and_reload_core(self):
"""Save minidump cores in every supported `--style` from a single
live stop, then re-attach to each and verify the frame, thread
diff --git a/lldb/test/API/tools/lldb-dap/server/TestDAP_server.py b/lldb/test/API/tools/lldb-dap/server/TestDAP_server.py
index d5225fd627022..6baa0ab694d21 100644
--- a/lldb/test/API/tools/lldb-dap/server/TestDAP_server.py
+++ b/lldb/test/API/tools/lldb-dap/server/TestDAP_server.py
@@ -15,7 +15,7 @@
from typing import Tuple
- at requireSocketPermission # every test starts lldb-dap in listening server mode
+ at requireSocketPermission("every test starts lldb-dap in listening server mode")
class TestDAP_server(lldbdap_testcase.DAPTestCaseBase):
def start_server(
self, connection, connection_timeout=30
@@ -77,7 +77,7 @@ def test_server_port(self):
self.run_debug_session(connection, "Alice")
self.run_debug_session(connection, "Bob")
- @requirePOSIX
+ @requirePOSIX()
def test_server_unix_socket(self):
"""
Test launching a binary with a lldb-dap in server mode on a unix socket.
diff --git a/lldb/test/API/tools/lldb-dap/stopped-events/TestDAP_stopped_events.py b/lldb/test/API/tools/lldb-dap/stopped-events/TestDAP_stopped_events.py
index a1fd2347b8228..a5511c68e08ec 100644
--- a/lldb/test/API/tools/lldb-dap/stopped-events/TestDAP_stopped_events.py
+++ b/lldb/test/API/tools/lldb-dap/stopped-events/TestDAP_stopped_events.py
@@ -12,7 +12,7 @@
@skipIfWindows # This is flakey on Windows: llvm.org/pr24668, llvm.org/pr38373
@skipIfLinux
- at requireThreadSupport
+ at requireThreadSupport()
class TestDAP_stopped_events(DAPTestCaseBase):
"""
Test validates different operations that produce 'stopped' events.
diff --git a/lldb/test/API/tools/lldb-dap/threads/TestDAP_threads.py b/lldb/test/API/tools/lldb-dap/threads/TestDAP_threads.py
index ab4e663318e41..b2dc7142856ed 100644
--- a/lldb/test/API/tools/lldb-dap/threads/TestDAP_threads.py
+++ b/lldb/test/API/tools/lldb-dap/threads/TestDAP_threads.py
@@ -8,7 +8,7 @@
from lldbsuite.test.tools.lldb_dap.types import LaunchArgs, StoppedReason, ThreadsArgs
- at requireThreadSupport
+ at requireThreadSupport()
class TestDAP_threads(DAPTestCaseBase):
def test_correct_thread(self):
"""
diff --git a/lldb/test/API/tools/lldb-dap/variables/TestDAP_variables.py b/lldb/test/API/tools/lldb-dap/variables/TestDAP_variables.py
index b11ebd225cd21..f195a1a9b6d83 100644
--- a/lldb/test/API/tools/lldb-dap/variables/TestDAP_variables.py
+++ b/lldb/test/API/tools/lldb-dap/variables/TestDAP_variables.py
@@ -719,7 +719,7 @@ def test_registers(self):
self.assertIn("at main.cpp:", pc_reg.value)
@no_debug_info_test
- @requireDarwin
+ @requireDarwin()
def test_darwin_dwarf_missing_obj(self):
"""
Test that if we build a binary with DWARF in .o files and we remove
@@ -733,7 +733,7 @@ def test_darwin_dwarf_missing_obj(self):
self.darwin_dwarf_missing_obj(None)
@no_debug_info_test
- @requireDarwin
+ @requireDarwin()
def test_darwin_dwarf_missing_obj_with_symbol_ondemand_enabled(self):
"""
Test that if we build a binary with DWARF in .o files and we remove
diff --git a/lldb/test/API/tools/lldb-server/TestGdbRemoteHostInfo.py b/lldb/test/API/tools/lldb-server/TestGdbRemoteHostInfo.py
index b136b0c736ccf..fd95feca7db25 100644
--- a/lldb/test/API/tools/lldb-server/TestGdbRemoteHostInfo.py
+++ b/lldb/test/API/tools/lldb-server/TestGdbRemoteHostInfo.py
@@ -116,7 +116,7 @@ def test_qHostInfo_returns_at_least_one_key_val_pair(self):
self.build()
self.get_qHostInfo_response()
- @requireDarwin
+ @requireDarwin()
def test_qHostInfo_contains_darwin_required_keys(self):
self.build()
host_info_dict = self.get_qHostInfo_response()
diff --git a/lldb/test/API/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py b/lldb/test/API/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py
index dc0c62bd37502..1613361429324 100644
--- a/lldb/test/API/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py
+++ b/lldb/test/API/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py
@@ -7,7 +7,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
@skipIfMTE # MTE security transition shims restrict socket operations.
class TestGdbRemoteThreadsInStopReply(gdbremote_testcase.GdbRemoteTestCaseBase):
ENABLE_THREADS_IN_STOP_REPLY_ENTRIES = [
diff --git a/lldb/test/API/tools/lldb-server/TestLldbGdbServer.py b/lldb/test/API/tools/lldb-server/TestLldbGdbServer.py
index 921dff7f0a0a8..8e1ad47d26cda 100644
--- a/lldb/test/API/tools/lldb-server/TestLldbGdbServer.py
+++ b/lldb/test/API/tools/lldb-server/TestLldbGdbServer.py
@@ -479,7 +479,7 @@ def Hc_then_Csignal_signals_correct_thread(self, segfault_signo):
self.assertEqual(post_handle_thread_id, print_thread_id)
@expectedFailureDarwin
- @requireSignals
+ @requireSignals()
@expectedFailureNetBSD
def test_Hc_then_Csignal_signals_correct_thread_launch(self):
self.build()
diff --git a/lldb/test/API/tools/lldb-server/TestNonStop.py b/lldb/test/API/tools/lldb-server/TestNonStop.py
index 6f7dbd11982d7..024f4a3c6aa44 100644
--- a/lldb/test/API/tools/lldb-server/TestNonStop.py
+++ b/lldb/test/API/tools/lldb-server/TestNonStop.py
@@ -5,7 +5,7 @@
class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
- @requireSignals
+ @requireSignals()
@add_test_categories(["llgs"])
def test_run(self):
self.build()
diff --git a/lldb/test/API/tools/lldb-server/cached-memory-region-info/TestCachedMemoryRegionInfo.py b/lldb/test/API/tools/lldb-server/cached-memory-region-info/TestCachedMemoryRegionInfo.py
index 30b1de77eec52..0f963123c55b2 100644
--- a/lldb/test/API/tools/lldb-server/cached-memory-region-info/TestCachedMemoryRegionInfo.py
+++ b/lldb/test/API/tools/lldb-server/cached-memory-region-info/TestCachedMemoryRegionInfo.py
@@ -9,7 +9,7 @@
@skipIfWindowsAndNoLLDBServer
- at requireThreadSupport
+ at requireThreadSupport()
class MemoryRegionInfoPacketsCached(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/tools/lldb-server/commandline/TestStubSetSID.py b/lldb/test/API/tools/lldb-server/commandline/TestStubSetSID.py
index 97d879e1da81d..6fe7b4f88dc11 100644
--- a/lldb/test/API/tools/lldb-server/commandline/TestStubSetSID.py
+++ b/lldb/test/API/tools/lldb-server/commandline/TestStubSetSID.py
@@ -26,7 +26,7 @@ def prepare_test(self):
self.start_new_session = False
self.set_inferior_startup_launch()
- @requirePOSIX
+ @requirePOSIX()
@skipIfRemote # --setsid not used on remote platform and currently it is also impossible to get the sid of lldb-platform running on a remote target
def test_sid_is_same_without_setsid(self):
self.prepare_test()
@@ -34,7 +34,7 @@ def test_sid_is_same_without_setsid(self):
stub_sid = self.get_stub_sid()
self.assertEqual(stub_sid, os.getsid(0))
- @requirePOSIX
+ @requirePOSIX()
@skipIfRemote # --setsid not used on remote platform and currently it is also impossible to get the sid of lldb-platform running on a remote target
def test_sid_is_different_with_setsid(self):
self.prepare_test()
@@ -42,7 +42,7 @@ def test_sid_is_different_with_setsid(self):
stub_sid = self.get_stub_sid(["--setsid"])
self.assertNotEqual(stub_sid, os.getsid(0))
- @requirePOSIX
+ @requirePOSIX()
@skipIfRemote # --setsid not used on remote platform and currently it is also impossible to get the sid of lldb-platform running on a remote target
def test_sid_is_different_with_S_llgs(self):
self.prepare_test()
diff --git a/lldb/test/API/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py b/lldb/test/API/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py
index 834da35b9da4e..3c719c4355dd0 100644
--- a/lldb/test/API/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py
+++ b/lldb/test/API/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py
@@ -5,7 +5,7 @@
class TestGdbRemoteAbort(gdbremote_testcase.GdbRemoteTestCaseBase):
- @requireSignals
+ @requireSignals()
# std::abort() on <= API 16 raises SIGSEGV - b.android.com/179836
@expectedFailureAndroid(api_levels=list(range(16 + 1)))
def test_inferior_abort_received_llgs(self):
diff --git a/lldb/test/API/tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py b/lldb/test/API/tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py
index bf66e2128f3c0..39d32d1c5fdd9 100644
--- a/lldb/test/API/tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py
+++ b/lldb/test/API/tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py
@@ -30,7 +30,7 @@ def inferior_seg_fault_received(self, expected_signo):
self.assertIsNotNone(hex_exit_code)
self.assertEqual(int(hex_exit_code, 16), expected_signo)
- @requireSignals
+ @requireSignals()
def test_inferior_seg_fault_received(self):
self.build()
if self.platformIsDarwin():
diff --git a/lldb/test/API/tools/lldb-server/signal-filtering/TestGdbRemote_QPassSignals.py b/lldb/test/API/tools/lldb-server/signal-filtering/TestGdbRemote_QPassSignals.py
index 2a2ee8d186a04..52d9952e11e27 100644
--- a/lldb/test/API/tools/lldb-server/signal-filtering/TestGdbRemote_QPassSignals.py
+++ b/lldb/test/API/tools/lldb-server/signal-filtering/TestGdbRemote_QPassSignals.py
@@ -87,7 +87,7 @@ def test_change_signals_at_runtime(self):
self.ignore_signals(signals_to_ignore)
self.expect_exit_code(len(signals_to_ignore))
- @requireSignals
+ @requireSignals()
@expectedFailureNetBSD
def test_default_signals_behavior(self):
self.build()
diff --git a/lldb/test/API/tools/lldb-server/vCont-threads/TestPartialResume.py b/lldb/test/API/tools/lldb-server/vCont-threads/TestPartialResume.py
index facc9412a2173..ed4ebe625076a 100644
--- a/lldb/test/API/tools/lldb-server/vCont-threads/TestPartialResume.py
+++ b/lldb/test/API/tools/lldb-server/vCont-threads/TestPartialResume.py
@@ -5,7 +5,7 @@
from lldbsuite.test.lldbtest import *
- at requireThreadSupport
+ at requireThreadSupport()
class TestPartialResume(gdbremote_testcase.GdbRemoteTestCaseBase):
THREAD_MATCH_RE = re.compile(r"thread ([0-9a-f]+) running")
diff --git a/lldb/test/API/tools/lldb-server/vCont-threads/TestSignal.py b/lldb/test/API/tools/lldb-server/vCont-threads/TestSignal.py
index 230021b826260..2c416b784096e 100644
--- a/lldb/test/API/tools/lldb-server/vCont-threads/TestSignal.py
+++ b/lldb/test/API/tools/lldb-server/vCont-threads/TestSignal.py
@@ -6,7 +6,7 @@
from lldbsuite.test import lldbutil
- at requireThreadSupport
+ at requireThreadSupport()
class TestSignal(gdbremote_testcase.GdbRemoteTestCaseBase):
def start_threads(self, num):
procs = self.prep_debug_monitor_and_inferior(inferior_args=[str(num)])
@@ -54,7 +54,7 @@ def get_pid(self):
procinfo = self.parse_process_info_response(context)
return int(procinfo["pid"], 16)
- @requireSignals
+ @requireSignals()
@skipIfDarwin
@expectedFailureNetBSD
@expectedFailureAll(
@@ -85,7 +85,7 @@ def test_signal_one_thread(self):
"C{0:x}:{1:x};c".format(lldbutil.get_signal_number("SIGUSR1")), threads[:1]
)
- @requireSignals
+ @requireSignals()
@skipIfDarwin
@expectedFailureNetBSD
@expectedFailureAll(
@@ -106,7 +106,7 @@ def test_signal_all_threads(self):
threads,
)
- @requireSignals
+ @requireSignals()
@expectedFailureNetBSD
@expectedFailureAll(
oslist=["freebsd"], bugnumber="github.com/llvm/llvm-project/issues/56086"
@@ -126,7 +126,7 @@ def test_signal_process_by_pid(self):
threads,
)
- @requireSignals
+ @requireSignals()
@expectedFailureNetBSD
@expectedFailureAll(
oslist=["freebsd"], bugnumber="github.com/llvm/llvm-project/issues/56086"
@@ -143,7 +143,7 @@ def test_signal_process_minus_one(self):
"C{0:x}:p-1".format(lldbutil.get_signal_number("SIGUSR1")), threads
)
- @requireSignals
+ @requireSignals()
@expectedFailureNetBSD
@expectedFailureAll(
oslist=["freebsd"], bugnumber="github.com/llvm/llvm-project/issues/56086"
@@ -159,7 +159,7 @@ def test_signal_minus_one(self):
"C{0:x}:-1".format(lldbutil.get_signal_number("SIGUSR1")), threads
)
- @requireSignals
+ @requireSignals()
@expectedFailureNetBSD
@expectedFailureAll(
oslist=["freebsd"], bugnumber="github.com/llvm/llvm-project/issues/56086"
@@ -180,7 +180,7 @@ def test_signal_all_threads_by_pid(self):
threads,
)
- @requireSignals
+ @requireSignals()
@expectedFailureNetBSD
@expectedFailureAll(
oslist=["freebsd"], bugnumber="github.com/llvm/llvm-project/issues/56086"
@@ -200,7 +200,7 @@ def test_signal_minus_one_by_pid(self):
threads,
)
- @requireSignals
+ @requireSignals()
@expectedFailureNetBSD
@expectedFailureAll(
oslist=["freebsd"], bugnumber="github.com/llvm/llvm-project/issues/56086"
diff --git a/lldb/test/API/types/TestCharType.py b/lldb/test/API/types/TestCharType.py
index c4c9a14b11b22..e98b5aef1c5f8 100644
--- a/lldb/test/API/types/TestCharType.py
+++ b/lldb/test/API/types/TestCharType.py
@@ -12,7 +12,7 @@ def test_char_type(self):
"""Test that char-type variables are displayed correctly."""
self.build_and_run("char.cpp", ["char"], qd=True)
- @requireDarwin
+ @requireDarwin()
def test_char_type_from_block(self):
"""Test that char-type variables are displayed correctly from a block."""
self.build_and_run("char.cpp", ["char"], bc=True, qd=True)
@@ -21,7 +21,7 @@ def test_unsigned_char_type(self):
"""Test that 'unsigned_char'-type variables are displayed correctly."""
self.build_and_run("unsigned_char.cpp", ["unsigned", "char"], qd=True)
- @requireDarwin
+ @requireDarwin()
def test_unsigned_char_type_from_block(self):
"""Test that 'unsigned char'-type variables are displayed correctly from a block."""
self.build_and_run("unsigned_char.cpp", ["unsigned", "char"], bc=True, qd=True)
diff --git a/lldb/test/API/types/TestCharTypeExpr.py b/lldb/test/API/types/TestCharTypeExpr.py
index 11a1cfec6670a..8c25ee6a78d61 100644
--- a/lldb/test/API/types/TestCharTypeExpr.py
+++ b/lldb/test/API/types/TestCharTypeExpr.py
@@ -12,7 +12,7 @@ def test_char_type(self):
"""Test that char-type variable expressions are evaluated correctly."""
self.build_and_run_expr("char.cpp", ["char"], qd=True)
- @requireDarwin
+ @requireDarwin()
def test_char_type_from_block(self):
"""Test that char-type variables are displayed correctly from a block."""
self.build_and_run_expr("char.cpp", ["char"], bc=True, qd=True)
@@ -21,7 +21,7 @@ def test_unsigned_char_type(self):
"""Test that 'unsigned_char'-type variable expressions are evaluated correctly."""
self.build_and_run_expr("unsigned_char.cpp", ["unsigned", "char"], qd=True)
- @requireDarwin
+ @requireDarwin()
def test_unsigned_char_type_from_block(self):
"""Test that 'unsigned char'-type variables are displayed correctly from a block."""
self.build_and_run_expr(
diff --git a/lldb/test/API/types/TestDoubleTypes.py b/lldb/test/API/types/TestDoubleTypes.py
index fc61c17603739..364bac61c77da 100644
--- a/lldb/test/API/types/TestDoubleTypes.py
+++ b/lldb/test/API/types/TestDoubleTypes.py
@@ -16,7 +16,7 @@ def test_double_type(self):
"""Test that double-type variables are displayed correctly."""
self.build_and_run("double.cpp", set(["double"]))
- @requireDarwin
+ @requireDarwin()
def test_double_type_from_block(self):
"""Test that double-type variables are displayed correctly from a block."""
self.build_and_run("double.cpp", set(["double"]), bc=True)
diff --git a/lldb/test/API/types/TestDoubleTypesExpr.py b/lldb/test/API/types/TestDoubleTypesExpr.py
index 2c8bfe9511a8b..0d0dcbc958dc0 100644
--- a/lldb/test/API/types/TestDoubleTypesExpr.py
+++ b/lldb/test/API/types/TestDoubleTypesExpr.py
@@ -20,7 +20,7 @@ def test_double_type(self):
"""Test that double-type variable expressions are evaluated correctly."""
self.build_and_run_expr("double.cpp", set(["double"]))
- @requireDarwin
+ @requireDarwin()
def test_double_type_from_block(self):
"""Test that double-type variables are displayed correctly from a block."""
self.build_and_run_expr("double.cpp", set(["double"]), bc=True)
diff --git a/lldb/test/API/types/TestFloatTypes.py b/lldb/test/API/types/TestFloatTypes.py
index 26e7b5e8c9f7a..e800356466f23 100644
--- a/lldb/test/API/types/TestFloatTypes.py
+++ b/lldb/test/API/types/TestFloatTypes.py
@@ -16,7 +16,7 @@ def test_float_type(self):
"""Test that float-type variables are displayed correctly."""
self.build_and_run("float.cpp", set(["float"]))
- @requireDarwin
+ @requireDarwin()
def test_float_type_from_block(self):
"""Test that float-type variables are displayed correctly from a block."""
self.build_and_run("float.cpp", set(["float"]), bc=True)
diff --git a/lldb/test/API/types/TestFloatTypesExpr.py b/lldb/test/API/types/TestFloatTypesExpr.py
index a3d5b119692dd..b4e3a61aacf44 100644
--- a/lldb/test/API/types/TestFloatTypesExpr.py
+++ b/lldb/test/API/types/TestFloatTypesExpr.py
@@ -20,7 +20,7 @@ def test_float_type(self):
"""Test that float-type variable expressions are evaluated correctly."""
self.build_and_run_expr("float.cpp", set(["float"]))
- @requireDarwin
+ @requireDarwin()
def test_float_type_from_block(self):
"""Test that float-type variables are displayed correctly from a block."""
self.build_and_run_expr("float.cpp", set(["float"]), bc=True)
diff --git a/lldb/test/API/types/TestIntegerType.py b/lldb/test/API/types/TestIntegerType.py
index 76314de385e21..5a0b66b19a60a 100644
--- a/lldb/test/API/types/TestIntegerType.py
+++ b/lldb/test/API/types/TestIntegerType.py
@@ -12,7 +12,7 @@ def test_int_type(self):
"""Test that int-type variables are displayed correctly."""
self.build_and_run("int.cpp", ["int"])
- @requireDarwin
+ @requireDarwin()
def test_int_type_from_block(self):
"""Test that int-type variables are displayed correctly from a block."""
self.build_and_run("int.cpp", ["int"])
@@ -21,7 +21,7 @@ def test_unsigned_int_type(self):
"""Test that 'unsigned_int'-type variables are displayed correctly."""
self.build_and_run("unsigned_int.cpp", ["unsigned", "int"])
- @requireDarwin
+ @requireDarwin()
def test_unsigned_int_type_from_block(self):
"""Test that 'unsigned int'-type variables are displayed correctly from a block."""
self.build_and_run("unsigned_int.cpp", ["unsigned", "int"], bc=True)
diff --git a/lldb/test/API/types/TestIntegerTypeExpr.py b/lldb/test/API/types/TestIntegerTypeExpr.py
index d7c81d53ae941..3a153aa0d960d 100644
--- a/lldb/test/API/types/TestIntegerTypeExpr.py
+++ b/lldb/test/API/types/TestIntegerTypeExpr.py
@@ -8,7 +8,7 @@
class IntegerTypeExprTestCase(AbstractBase.GenericTester):
- @requireDarwin
+ @requireDarwin()
def test_unsigned_short_type_from_block(self):
"""Test that 'unsigned short'-type variables are displayed correctly from a block."""
self.build_and_run_expr("unsigned_short.cpp", ["unsigned", "short"], bc=True)
@@ -17,7 +17,7 @@ def test_int_type(self):
"""Test that int-type variable expressions are evaluated correctly."""
self.build_and_run_expr("int.cpp", ["int"])
- @requireDarwin
+ @requireDarwin()
def test_int_type_from_block(self):
"""Test that int-type variables are displayed correctly from a block."""
self.build_and_run_expr("int.cpp", ["int"])
@@ -26,7 +26,7 @@ def test_unsigned_int_type(self):
"""Test that 'unsigned_int'-type variable expressions are evaluated correctly."""
self.build_and_run_expr("unsigned_int.cpp", ["unsigned", "int"])
- @requireDarwin
+ @requireDarwin()
def test_unsigned_int_type_from_block(self):
"""Test that 'unsigned int'-type variables are displayed correctly from a block."""
self.build_and_run_expr("unsigned_int.cpp", ["unsigned", "int"], bc=True)
diff --git a/lldb/test/API/types/TestLongTypes.py b/lldb/test/API/types/TestLongTypes.py
index f13b57dfa8a01..7b79dc87ea3b6 100644
--- a/lldb/test/API/types/TestLongTypes.py
+++ b/lldb/test/API/types/TestLongTypes.py
@@ -12,7 +12,7 @@ def test_long_type(self):
"""Test that long-type variables are displayed correctly."""
self.build_and_run("long.cpp", ["long"])
- @requireDarwin
+ @requireDarwin()
def test_long_type_from_block(self):
"""Test that long-type variables are displayed correctly from a block."""
self.build_and_run("long.cpp", ["long"], bc=True)
@@ -21,7 +21,7 @@ def test_unsigned_long_type(self):
"""Test that 'unsigned long'-type variables are displayed correctly."""
self.build_and_run("unsigned_long.cpp", ["unsigned", "long"])
- @requireDarwin
+ @requireDarwin()
def test_unsigned_long_type_from_block(self):
"""Test that 'unsigned_long'-type variables are displayed correctly from a block."""
self.build_and_run("unsigned_long.cpp", ["unsigned", "long"], bc=True)
@@ -30,7 +30,7 @@ def test_long_long_type(self):
"""Test that 'long long'-type variables are displayed correctly."""
self.build_and_run("long_long.cpp", ["long long"])
- @requireDarwin
+ @requireDarwin()
def test_long_long_type_from_block(self):
"""Test that 'long_long'-type variables are displayed correctly from a block."""
self.build_and_run("long_long.cpp", ["long long"], bc=True)
@@ -39,7 +39,7 @@ def test_unsigned_long_long_type(self):
"""Test that 'unsigned long long'-type variables are displayed correctly."""
self.build_and_run("unsigned_long_long.cpp", ["unsigned", "long long"])
- @requireDarwin
+ @requireDarwin()
def test_unsigned_long_long_type_from_block(self):
"""Test that 'unsigned_long_long'-type variables are displayed correctly from a block."""
self.build_and_run("unsigned_long_long.cpp", ["unsigned", "long long"], bc=True)
diff --git a/lldb/test/API/types/TestLongTypesExpr.py b/lldb/test/API/types/TestLongTypesExpr.py
index 6f57edc085fef..2cb639c25f870 100644
--- a/lldb/test/API/types/TestLongTypesExpr.py
+++ b/lldb/test/API/types/TestLongTypesExpr.py
@@ -12,7 +12,7 @@ def test_long_type(self):
"""Test that long-type variable expressions are evaluated correctly."""
self.build_and_run_expr("long.cpp", ["long"])
- @requireDarwin
+ @requireDarwin()
def test_long_type_from_block(self):
"""Test that long-type variables are displayed correctly from a block."""
self.build_and_run_expr("long.cpp", ["long"], bc=True)
@@ -21,7 +21,7 @@ def test_unsigned_long_type(self):
"""Test that 'unsigned long'-type variable expressions are evaluated correctly."""
self.build_and_run_expr("unsigned_long.cpp", ["unsigned", "long"])
- @requireDarwin
+ @requireDarwin()
def test_unsigned_long_type_from_block(self):
"""Test that 'unsigned_long'-type variables are displayed correctly from a block."""
self.build_and_run_expr("unsigned_long.cpp", ["unsigned", "long"], bc=True)
@@ -30,7 +30,7 @@ def test_long_long_type(self):
"""Test that 'long long'-type variable expressions are evaluated correctly."""
self.build_and_run_expr("long_long.cpp", ["long long"])
- @requireDarwin
+ @requireDarwin()
def test_long_long_type_from_block(self):
"""Test that 'long_long'-type variables are displayed correctly from a block."""
self.build_and_run_expr("long_long.cpp", ["long long"], bc=True)
@@ -39,7 +39,7 @@ def test_unsigned_long_long_type(self):
"""Test that 'unsigned long long'-type variable expressions are evaluated correctly."""
self.build_and_run_expr("unsigned_long_long.cpp", ["unsigned", "long long"])
- @requireDarwin
+ @requireDarwin()
def test_unsigned_long_long_type_from_block(self):
"""Test that 'unsigned_long_long'-type variables are displayed correctly from a block."""
self.build_and_run_expr(
diff --git a/lldb/test/API/types/TestShortType.py b/lldb/test/API/types/TestShortType.py
index 5e7433cd3fe70..26a7cb2e6f343 100644
--- a/lldb/test/API/types/TestShortType.py
+++ b/lldb/test/API/types/TestShortType.py
@@ -12,7 +12,7 @@ def test_short_type(self):
"""Test that short-type variables are displayed correctly."""
self.build_and_run("short.cpp", ["short"])
- @requireDarwin
+ @requireDarwin()
def test_short_type_from_block(self):
"""Test that short-type variables are displayed correctly from a block."""
self.build_and_run("short.cpp", ["short"], bc=True)
@@ -21,7 +21,7 @@ def test_unsigned_short_type(self):
"""Test that 'unsigned_short'-type variables are displayed correctly."""
self.build_and_run("unsigned_short.cpp", ["unsigned", "short"])
- @requireDarwin
+ @requireDarwin()
def test_unsigned_short_type_from_block(self):
"""Test that 'unsigned short'-type variables are displayed correctly from a block."""
self.build_and_run("unsigned_short.cpp", ["unsigned", "short"], bc=True)
diff --git a/lldb/test/API/types/TestShortTypeExpr.py b/lldb/test/API/types/TestShortTypeExpr.py
index 71ee09caa0263..ba49721c81cee 100644
--- a/lldb/test/API/types/TestShortTypeExpr.py
+++ b/lldb/test/API/types/TestShortTypeExpr.py
@@ -12,7 +12,7 @@ def test_short_type(self):
"""Test that short-type variable expressions are evaluated correctly."""
self.build_and_run_expr("short.cpp", ["short"])
- @requireDarwin
+ @requireDarwin()
def test_short_type_from_block(self):
"""Test that short-type variables are displayed correctly from a block."""
self.build_and_run_expr("short.cpp", ["short"], bc=True)
@@ -21,7 +21,7 @@ def test_unsigned_short_type(self):
"""Test that 'unsigned_short'-type variable expressions are evaluated correctly."""
self.build_and_run_expr("unsigned_short.cpp", ["unsigned", "short"])
- @requireDarwin
+ @requireDarwin()
def test_unsigned_short_type_from_block(self):
"""Test that 'unsigned short'-type variables are displayed correctly from a block."""
self.build_and_run_expr("unsigned_short.cpp", ["unsigned", "short"], bc=True)
diff --git a/lldb/test/API/windows/conpty/TestConPTY.py b/lldb/test/API/windows/conpty/TestConPTY.py
index 455263eb0d962..8f720036ae3dc 100644
--- a/lldb/test/API/windows/conpty/TestConPTY.py
+++ b/lldb/test/API/windows/conpty/TestConPTY.py
@@ -61,7 +61,7 @@ def _run_to_exit(self, mode):
return process.GetSTDOUT(1 << 20)
- @requireWindows
+ @requireWindows()
@skipUnlessWindowsConPTY2022
@skipIf(oslist=["windows"], archs=["aarch64"], bugnumber="#194069")
def test_stdout_delivery(self):
@@ -72,7 +72,7 @@ def test_stdout_delivery(self):
output = self._strip_output(output)
self.assertIn("Hello from ConPTY\r\n", output)
- @requireWindows
+ @requireWindows()
@skipUnlessWindowsConPTY2022
@skipIf(oslist=["windows"], archs=["aarch64"], bugnumber="#194069")
def test_large_output(self):
@@ -90,7 +90,7 @@ def test_large_output(self):
for i, line in enumerate(output_lines):
self.assertEqual("line %04d" % i, line)
- @requireWindows
+ @requireWindows()
@skipUnlessWindowsConPTY
@skipIf(oslist=["windows"], archs=["aarch64"], bugnumber="#194069")
def test_basic_output_without_vt_check(self):
@@ -107,7 +107,7 @@ def test_basic_output_without_vt_check(self):
stripped = re.sub(r"\x1b\[[0-9;?]*[A-Za-z]", "", output)
self.assertIn("Hello from ConPTY", stripped)
- @requireWindows
+ @requireWindows()
@skipUnlessWindowsConPTY2022
@skipIf(oslist=["windows"], archs=["aarch64"], bugnumber="#194069")
def test_no_screen_clear_on_init(self):
diff --git a/lldb/test/API/windows/debug-heap/TestWindowsDebugHeap.py b/lldb/test/API/windows/debug-heap/TestWindowsDebugHeap.py
index 69bb22da366ea..0c1d87fb72142 100644
--- a/lldb/test/API/windows/debug-heap/TestWindowsDebugHeap.py
+++ b/lldb/test/API/windows/debug-heap/TestWindowsDebugHeap.py
@@ -8,7 +8,7 @@
from typing import List
- at requireWindows
+ at requireWindows()
class DebugHeapTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
diff --git a/lldb/test/API/windows/launch/missing-dll/TestMissingDll.py b/lldb/test/API/windows/launch/missing-dll/TestMissingDll.py
index 5d51e0bd6b1ee..41cf2057a6af7 100644
--- a/lldb/test/API/windows/launch/missing-dll/TestMissingDll.py
+++ b/lldb/test/API/windows/launch/missing-dll/TestMissingDll.py
@@ -6,7 +6,7 @@
@skipIfTargetDoesNotSupportSharedLibraries()
class MissingDllTestCase(TestBase):
- @requireWindows
+ @requireWindows()
def test(self):
"""
Test that lldb reports the application's exit code (STATUS_DLL_NOT_FOUND),
diff --git a/lldb/test/API/windows/launch/replace-dll/TestReplaceDLL.py b/lldb/test/API/windows/launch/replace-dll/TestReplaceDLL.py
index 83250f1700666..b51a768e37dd1 100644
--- a/lldb/test/API/windows/launch/replace-dll/TestReplaceDLL.py
+++ b/lldb/test/API/windows/launch/replace-dll/TestReplaceDLL.py
@@ -10,7 +10,7 @@
class ReplaceDllTestCase(TestBase):
SHARED_BUILD_TESTCASE = False
- @requireWindows
+ @requireWindows()
def test(self):
"""
Test that LLDB unlocks module files once all references are released.
diff --git a/lldb/test/API/windows/msvcrt/TestMSVCRTCException.py b/lldb/test/API/windows/msvcrt/TestMSVCRTCException.py
index b379e50d48cbd..b2a4a72ec2355 100644
--- a/lldb/test/API/windows/msvcrt/TestMSVCRTCException.py
+++ b/lldb/test/API/windows/msvcrt/TestMSVCRTCException.py
@@ -9,7 +9,7 @@
class TestMSVCRTCException(TestBase):
NO_DEBUG_INFO_TESTCASE = True
- @requireWindows
+ @requireWindows()
@skipUnlessMSVC
def test_msvc_runtime_checks(self):
"""Test that lldb prints MSVC's runtime checks exceptions as stop reasons."""
diff --git a/lldb/test/API/windows/thread/TestThreadName.py b/lldb/test/API/windows/thread/TestThreadName.py
index 7680790a6d49f..18321c3bb8f88 100644
--- a/lldb/test/API/windows/thread/TestThreadName.py
+++ b/lldb/test/API/windows/thread/TestThreadName.py
@@ -9,7 +9,7 @@
class TestThreadName(TestBase):
- @requireWindows
+ @requireWindows()
@skipIfWindows(windows_version=["<", "10.0.14393"])
def test_with_thread_description(self):
"""SBThread.GetName() reflects SetThreadDescription on Windows."""
More information about the lldb-commits
mailing list