diff options
| author | ruki <[email protected]> | 2026-02-12 00:42:34 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-02-12 00:42:34 +0800 |
| commit | e0e3e4dc010c24c555499962f740f4d76eb25351 (patch) | |
| tree | a3b7ad53d6182186584ea92b17c5326ff83075b6 /tests/modules/binutils/test.lua | |
| parent | 120bb0b0cf4a046638dca0d408a5bff604d91c9f (diff) | |
improve deplibs to support wasm
Diffstat (limited to 'tests/modules/binutils/test.lua')
| -rw-r--r-- | tests/modules/binutils/test.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/modules/binutils/test.lua b/tests/modules/binutils/test.lua index b26e2b337..a2801af6e 100644 --- a/tests/modules/binutils/test.lua +++ b/tests/modules/binutils/test.lua @@ -80,3 +80,16 @@ function test_format(t) os.tryrm(tempdir) end + +function test_deplibs(t) + local tempdir = "temp/binutils_deplibs" + os.tryrm(tempdir) + os.mkdir(tempdir) + + local wasmso = path.join(tempdir, "libfoo.so") + io.writefile(wasmso, string.char(0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00)) + local libs = binutils.deplibs(wasmso) + t:are_equal(#libs, 0) + + os.tryrm(tempdir) +end |
