(msg)
| 65 | |
| 66 | |
| 67 | def check_shm_for_dali(msg): |
| 68 | shm_paths = ["/dev/shm/", "/run/shm/"] |
| 69 | for shm_path in shm_paths: |
| 70 | if os.path.isdir(shm_path): |
| 71 | shm_handles = os.listdir(shm_path) |
| 72 | for handle in shm_handles: |
| 73 | assert "nvidia_dali_" not in handle, msg.format(shm_path + handle) |
| 74 | |
| 75 | |
| 76 | def setup_module(): |
no outgoing calls
no test coverage detected