summaryrefslogtreecommitdiff
path: root/Tests/Kernel/crash.cpp
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-07-08 16:46:53 +0200
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-07-08 22:27:38 +0000
commit9e8c698ae84d7fa70bb404c6e8deda6a47e88ac7 (patch)
tree2ab52533249691676d788b8bd234676fd05d2e30 /Tests/Kernel/crash.cpp
parent5efa8e507b937d01fca88876205b395ed8c6e2c5 (diff)
downloadserenity-9e8c698ae84d7fa70bb404c6e8deda6a47e88ac7.zip
Tests: Remove the RDTSC kernel crash test
We will remove the RDTSC instruction restriction to allow QEMU to read an accurate time, so this will no longer crash and therefore fail the test.
Diffstat (limited to 'Tests/Kernel/crash.cpp')
-rw-r--r--Tests/Kernel/crash.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/Tests/Kernel/crash.cpp b/Tests/Kernel/crash.cpp
index d245e44a4e..ad1759f978 100644
--- a/Tests/Kernel/crash.cpp
+++ b/Tests/Kernel/crash.cpp
@@ -46,7 +46,6 @@ int main(int argc, char** argv)
bool do_execute_non_executable_memory = false;
bool do_trigger_user_mode_instruction_prevention = false;
bool do_use_io_instruction = false;
- bool do_read_cpu_counter = false;
bool do_pledge_violation = false;
bool do_failing_assertion = false;
bool do_deref_null_refptr = false;
@@ -72,7 +71,6 @@ int main(int argc, char** argv)
args_parser.add_option(do_execute_non_executable_memory, "Attempt to execute non-executable memory (not mapped with PROT_EXEC)", nullptr, 'X');
args_parser.add_option(do_trigger_user_mode_instruction_prevention, "Attempt to trigger an x86 User Mode Instruction Prevention fault. WARNING: This test runs only when invoked manually, see #10042.", nullptr, 'U');
args_parser.add_option(do_use_io_instruction, "Use an x86 I/O instruction in userspace", nullptr, 'I');
- args_parser.add_option(do_read_cpu_counter, "Read the x86 TSC (Time Stamp Counter) directly", nullptr, 'c');
args_parser.add_option(do_pledge_violation, "Violate pledge()'d promises", nullptr, 'p');
args_parser.add_option(do_failing_assertion, "Perform a failing assertion", nullptr, 'n');
args_parser.add_option(do_deref_null_refptr, "Dereference a null RefPtr", nullptr, 'R');
@@ -274,13 +272,6 @@ int main(int argc, char** argv)
}).run(run_type);
}
- if (do_read_cpu_counter || do_all_crash_types) {
- any_failures |= !Crash("Read the CPU timestamp counter", [] {
- asm volatile("rdtsc");
- return Crash::Failure::DidNotCrash;
- }).run(run_type);
- }
-
if (do_pledge_violation || do_all_crash_types) {
any_failures |= !Crash("Violate pledge()'d promises", [] {
if (pledge("", nullptr) < 0) {