File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -743,15 +743,13 @@ def CheckLinuxCoreDumpPattern(fatal=False):
743743 message = (
744744 'Invalid core_pattern configuration. '
745745 'The configuration of core dump handling is *not* correct for '
746- 'a buildbot. The content of {0} must be "{1}" instead of "{2}".'
747- '(see https://github.com/dart-lang/sdk/issues/39662)' .format (
748- core_pattern_file , expected_core_pattern , core_pattern ))
749- # TODO(39662): Remove this once we know why this happens
750- fatal = False
746+ 'a buildbot. The content of {0} must be "{1}" instead of "{2}".' .
747+ format (core_pattern_file , expected_core_pattern , core_pattern ))
751748 if fatal :
752749 raise Exception (message )
753750 else :
754751 print (message )
752+ return True # TODO(39662): Remove once the core_pattern is fixed
755753 return False
756754 return True
757755
@@ -807,7 +805,8 @@ def __enter__(self):
807805 resource .setrlimit (resource .RLIMIT_CORE , (- 1 , - 1 ))
808806
809807 def __exit__ (self , * _ ):
810- resource .setrlimit (resource .RLIMIT_CORE , self ._old_limits )
808+ if self ._old_limits != None :
809+ resource .setrlimit (resource .RLIMIT_CORE , self ._old_limits )
811810
812811
813812class LinuxCoreDumpEnabler (PosixCoreDumpEnabler ):
You can’t perform that action at this time.
0 commit comments