Skip to content

Commit

Permalink
[#96] Activate alive state tests in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
elfenpiff committed Jan 21, 2024
1 parent 995758b commit 99a3476
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions iceoryx2-bb/posix/tests/process_state_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ pub fn process_state_guard_can_remove_already_existing_file() {
// from the same thread os the fcntl SETLK call. If it is called from a different thread GETLK
// blocks despite it should be non-blocking.
#[test]
#[ignore]
pub fn process_state_watcher_detects_state_from_existing_process() {
#[cfg(any(not(target_os = "linux")))]
pub fn process_state_watcher_detects_alive_state_from_existing_process() {
let path = generate_file_path();

let guard = ProcessGuard::new(&path).unwrap();
Expand Down
3 changes: 2 additions & 1 deletion iceoryx2-pal/posix/src/windows/win32_security_attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ use crate::posix::{types::*, S_IRUSR, S_IWUSR, S_IXUSR};
// GR = Generic Read
// GW = Generic Write
// GX = Generic Execute
// SD = Delete permission
// object_guid:
// empty
// inherit_object_guid:
Expand All @@ -64,7 +65,7 @@ use crate::posix::{types::*, S_IRUSR, S_IWUSR, S_IXUSR};
const SID_LENGTH: usize = 255;
const GENERIC_PERM_ALL: &[u8] = b"GA";
const GENERIC_PERM_READ: &[u8] = b"GR";
const GENERIC_PERM_WRITE: &[u8] = b"GW";
const GENERIC_PERM_WRITE: &[u8] = b"GWSD";
const GENERIC_PERM_EXECUTE: &[u8] = b"GX";
const FILE_PERM_ALL: &[u8] = b"FA";
const FILE_PERM_READ: &[u8] = b"FR";
Expand Down

0 comments on commit 99a3476

Please sign in to comment.