@@ -15,15 +15,14 @@ def test_triton_debuginfo_on():
1515 diLocalVarKey = "LLVM_EXTRACT_DI_LOCAL_VARIABLES"
1616
1717 isEnvSet = lambda env , str : env .get (str , None ) is not None
18- hasOrigLineInfo = ( # noqa: F841
19- not isEnvSet ( os . environ , lineInfoKey ) or os .environ [lineInfoKey ].lower () not in ["on" , "true" , "1" ])
18+ hasOrigLineInfo = (not isEnvSet ( os . environ , lineInfoKey )
19+ or os .environ [lineInfoKey ].lower () not in ["on" , "true" , "1" ])
2020 envs = [
2121 # expect no dbginfo if unset
2222 {lineInfoKey : None , diLocalVarKey : None , "hasDbgInfo" : False },
2323 # expect dbginfo based on parent proccess' TRITON_DISABLE_LINE_INFO
24- # FIXME: enable after https://github.com/KhronosGroup/SPIRV-LLVM-Translator/issues/3372 is fixed
25- # {lineInfoKey: None, diLocalVarKey: "1", "hasDbgInfo": hasOrigLineInfo},
26- # {lineInfoKey: "0", diLocalVarKey: "1", "hasDbgInfo": True},
24+ {lineInfoKey : None , diLocalVarKey : "1" , "hasDbgInfo" : hasOrigLineInfo },
25+ {lineInfoKey : "0" , diLocalVarKey : "1" , "hasDbgInfo" : True },
2726 {lineInfoKey : "1" , diLocalVarKey : "1" , "hasDbgInfo" : False },
2827 {lineInfoKey : "0" , diLocalVarKey : "0" , "hasDbgInfo" : False },
2928 {lineInfoKey : "1" , diLocalVarKey : "0" , "hasDbgInfo" : False },
0 commit comments