You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
osal_loader_UT would fail while running on the target, since the utmod/* files aren't installed along w/ the test executable to build/exe/*
In addition, under certain circumstances, the following tests may fail, i.e. if another user has run the tests and files are left in /dev/shm (the tests don't clean up the files):
file-api-test
select-test
To Reproduce
For the first case, run test out of build/exe/[cpu]
For the second case, run file-api-test/select-test once, chown the files under /dev/shm/RAM[N] to some other user, and run again.
Expected behavior
Tests should succeed
Code snips
Should have an install line for the test modules here:
This alone wouldn't solve the issue though, just punt it to the next available tmp directory. You'd probably also want to use mkstemp() or similar to generate a randomly named directory under the tmp folder.
System observed on:
Linux
Reporter Info
John N Pham, Northrop Grumman
The text was updated successfully, but these errors were encountered:
Describe the bug
osal_loader_UT would fail while running on the target, since the utmod/* files aren't installed along w/ the test executable to build/exe/*
In addition, under certain circumstances, the following tests may fail, i.e. if another user has run the tests and files are left in /dev/shm (the tests don't clean up the files):
file-api-test
select-test
To Reproduce
For the first case, run test out of build/exe/[cpu]
For the second case, run file-api-test/select-test once, chown the files under /dev/shm/RAM[N] to some other user, and run again.
Expected behavior
Tests should succeed
Code snips
Should have an install line for the test modules here:
osal/src/unit-tests/osloader-test/CMakeLists.txt
Lines 18 to 20 in bfca5b2
Should test if actual directory is writable, not just if the parent tmp directory is writable,
osal/src/os/posix/src/os-impl-filesys.c
Lines 156 to 165 in bfca5b2
This alone wouldn't solve the issue though, just punt it to the next available tmp directory. You'd probably also want to use mkstemp() or similar to generate a randomly named directory under the tmp folder.
System observed on:
Reporter Info
John N Pham, Northrop Grumman
The text was updated successfully, but these errors were encountered: