mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
17 lines
435 B
Python
17 lines
435 B
Python
|
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
|