diff --git a/test/TC_FXDCPrint.rb b/test/TC_FXDCPrint.rb index c06fa52cdf0c86f3dba80ef9f072c9488a2cf83e..3f72299f90c7cbe5995c6ef39ef86188da7b9285 100755 --- a/test/TC_FXDCPrint.rb +++ b/test/TC_FXDCPrint.rb @@ -1,6 +1,7 @@ require 'test/unit' require 'fox16' +require 'fileutils' include Fox @@ -25,7 +26,7 @@ private job.flags = PRINT_DEST_FILE job end - + def hexdump(ios) count = 0 ios.each_byte do |byte| @@ -48,7 +49,7 @@ private File.open(actual, 'rb') { |f| actual_contents = crlf_to_lf(f.read) } assert_equal(expected_contents, actual_contents) end - + public def setup if FXApp.instance.nil? @@ -92,7 +93,7 @@ public end # assert_same_file_contents("howdypage.ps", printJob.name) end - + def teardown if File.exists?("output.ps") FileUtils.rm_f("output.ps")