Skip to content

Commit

Permalink
remove unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
katsyoshi committed Aug 31, 2024
1 parent 87e299f commit f06c56d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
File renamed without changes.
5 changes: 0 additions & 5 deletions test/vaporware/compiler/assembler/elf/test_header.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@

class Vaporware::Compiler::Assembler::ELF::HeaderTest < Test::Unit::TestCase
def setup = @elf_header = Vaporware::Compiler::Assembler::ELF::Header.new
def test_filled_fields
assert_equal(@elf_header.empties, [:@entry, :@phoffset, :@shoffset, :@shnum, :@shstrndx])
@elf_header.set!(shoffset: 1)
assert_equal(@elf_header.empties, [:@entry, :@phoffset, :@shnum, :@shstrndx])
end

def test_build_elf_header
# TODO: ELF Header Section binary
Expand Down
4 changes: 3 additions & 1 deletion test/vaporware/compiler/test_assembler.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
require "vaporware"
require "test/unit"
require "tempfile"
require "pathname"

class Vaporware::Compiler::Assembler::ELFTest < Test::Unit::TestCase
def test_to_elf
input = __dir__ + "/amd64.s"
input = Pathname.pwd.join('sample', 'assembler', 'plus.s').to_s

assembler = Vaporware::Compiler::Assembler.new(input:, output: "amd64.o")
header, null, text, data, bss, note, symtab, strtab, shstrtab, *section_headers = assembler.to_elf
Expand All @@ -30,6 +31,7 @@ def test_to_elf
assert_equal(r_sh_symtab, sh_symtab.unpack("C*"))
assert_equal(r_sh_strtab, sh_strtab.unpack("C*"))
assert_equal(r_sh_shstrtab, sh_shstrtab.unpack("C*"))
File.delete("amd64.o")
end

def dumped_references
Expand Down

0 comments on commit f06c56d

Please sign in to comment.