mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Add unit test for LibcUtil().mallinfo2().
This commit is contained in:
parent
22a84930f6
commit
3599d546e6
16
tests/backend/model_management/test_libc_util.py
Normal file
16
tests/backend/model_management/test_libc_util.py
Normal file
@ -0,0 +1,16 @@
|
||||
import pytest
|
||||
|
||||
from invokeai.backend.model_management.libc_util import LibcUtil
|
||||
|
||||
|
||||
def test_libc_util_mallinfo2():
|
||||
"""Smoke test of LibcUtil().mallinfo2()."""
|
||||
try:
|
||||
libc = LibcUtil()
|
||||
except OSError:
|
||||
# TODO: Set the expected result preemptively based on the system properties.
|
||||
pytest.xfail("libc shared library is not available on this system.")
|
||||
|
||||
info = libc.mallinfo2()
|
||||
|
||||
assert info.arena > 0
|
Loading…
Reference in New Issue
Block a user