Skip to content
Snippets Groups Projects
  • Timur Safin's avatar
    d1111c8b
    debugger: gracefully handle nil values · d1111c8b
    Timur Safin authored
    Appeared that ASAN build could return nil values from child
    process executed via popen. Which sporadically produces
    error messages:
    
      not ok 1 ..console_debugger_session.test_interactive_debugger_session
      #   ...ntool/test/app-luatest/console_debugger_session_test.lua:11:
      # attempt to index local 's' (a nil value)
      #   stack traceback:
    
    Due to used timeouts we are ok to receive nil at one of a loop
    cycle - we simply repeat read to popen object. So handle this
    case gracefully.
    
    NO_DOC=bugfix
    NO_CHANGELOG=internal
    d1111c8b
    History
    debugger: gracefully handle nil values
    Timur Safin authored
    Appeared that ASAN build could return nil values from child
    process executed via popen. Which sporadically produces
    error messages:
    
      not ok 1 ..console_debugger_session.test_interactive_debugger_session
      #   ...ntool/test/app-luatest/console_debugger_session_test.lua:11:
      # attempt to index local 's' (a nil value)
      #   stack traceback:
    
    Due to used timeouts we are ok to receive nil at one of a loop
    cycle - we simply repeat read to popen object. So handle this
    case gracefully.
    
    NO_DOC=bugfix
    NO_CHANGELOG=internal