We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eb96ff2 + b320779 commit 28df015Copy full SHA for 28df015
1 file changed
test/runtests.jl
@@ -1,6 +1,17 @@
1
using ObjectFile
2
using Test
3
4
+@testset "basic" begin
5
+ # Test that an empty file is a magic mismatch
6
+ mktempdir() do dir
7
+ fpath = joinpath(dir, "empty")
8
+ touch(fpath)
9
+ @test_throws MagicMismatch readmeta(fpath) do oh
10
+ @test false
11
+ end
12
13
+end
14
+
15
function test_libfoo_and_fooifier(fooifier_path, libfoo_path)
16
# Actually read it in
17
oh_exe = readmeta(open(fooifier_path, "r"))
0 commit comments