Class: HotCell::Fixtures::GarbledStderr

Inherits:
Operation
  • Object
show all
Defined in:
lib/hot_cell/test_operations.rb

Overview

Bytes that are not valid UTF-8, which a payload cannot carry — so this is a fixture rather than an argument to StderrWriter. A decoder writing a filename out of a hostile file is where these come from.

Constant Summary

Constants inherited from Operation

Operation::READ_BYTES

Instance Method Summary collapse

Methods inherited from Operation

abstract_operation, abstract_operation?, before_fork, before_worker_boot, inherited, limits, operation, operation_name, #run_tool, unreadable

Instance Method Details

#perform(_inputs, _outputs) ⇒ Object



524
525
526
527
528
# File 'lib/hot_cell/test_operations.rb', line 524

def perform(_inputs, _outputs)
  $stderr.write "libgomp: \xFF\xFE failed\n".b
  $stderr.flush
  exit! 1
end