This repository has been archived on 2026-10-10. You can view files and clone it, but cannot push or open issues or pull requests.
molotov/crates/molotov-core/tests/tls_test.rs

9 lines
338 B
Rust

// SPDX-License-Identifier: GPL-3.0-or-later
use molotov_core::tls::BionicTls;
#[test]
fn test_bionic_tls_allocation() {
let tls = BionicTls::allocate().expect("Bionic TLS block should allocate cleanly");
assert!(!tls.tcb_ptr().is_null());
assert_eq!(tls.tcb_ptr() as usize % 64, 0, "TLS pointer must be 64-byte aligned");
}