]> git.proxmox.com Git - proxmox.git/commit
shared-memory: make tests integration tests
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 30 Dec 2021 10:02:54 +0000 (11:02 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 30 Dec 2021 10:51:08 +0000 (11:51 +0100)
commit2fa269fb05b241da5b420e3e3844eb3b4e439250
tree140d143e8c8c1ef8d3e06d81a14afb607d5aaac0
parent540fb905c244ad8761a90f6287f9942440a39c81
shared-memory: make tests integration tests

same as with sys/xattr, these touch files, so should use a tmpdir
provided by cargo, which requires them being integration tests.

if the tmpdir doesn't support O_TMPFILE (like overlayfs), the test is
not run (unfortunately, there is no way to indicate this via the test
result like with other test frameworks).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
proxmox-shared-memory/src/lib.rs
proxmox-shared-memory/tests/raw_shared_mutex.rs [new file with mode: 0644]