use axtest::prelude::*;
use starry_kernel::axtest_exports;
#[axtest]
fn user_stack_layout_is_inside_user_space() {
ax_assert!(axtest_exports::user_space_base() < axtest_exports::user_stack_top());
ax_assert!(axtest_exports::user_stack_size() > 0);
ax_assert!(
axtest_exports::user_stack_top()
<= axtest_exports::user_space_base() + axtest_exports::user_space_size()
);
}
#[axtest]
fn signal_trampoline_is_page_aligned() {
ax_assert_eq!(axtest_exports::signal_trampoline() & 0xfff, 0);
}
#[axtest]
fn timespec_rejects_invalid_nsec() {
ax_assert!(axtest_exports::invalid_timespec_is_rejected());
}
#[axtest]
fn random_write_mixes_entropy() {
ax_assert!(axtest_exports::random_write_mixes_entropy());
}
#[axtest]
fn time_value_conversion_rules_hold() {
ax_assert!(axtest_exports::time_value_conversion_rules_hold());
}
#[axtest]
fn dummy_stat_fs_fields_match_expected_defaults() {
ax_assert!(axtest_exports::dummy_stat_fs_fields_match_expected_defaults());
}
#[axtest]
fn perf_control_callback_runs_preemptible() {
ax_assert!(axtest_exports::perf_control_callback_runs_preemptible());
}
#[axtest]
fn stop_machine_runs_action_and_sync_on_each_cpu() {
ax_assert!(axtest_exports::stop_machine_runs_action_and_sync_on_each_cpu());
}