X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/d9a64523371fa019c4575bb400cbbc3a50ac9903..a991bd8d3e7fe02dbca0644054bab73c5b75324a:/tests/quiesce_counter.c diff --git a/tests/quiesce_counter.c b/tests/quiesce_counter.c index 563d13d04..d864d8531 100644 --- a/tests/quiesce_counter.c +++ b/tests/quiesce_counter.c @@ -41,10 +41,12 @@ #include #include +T_GLOBAL_META(T_META_RUN_CONCURRENTLY(true)); + #ifndef _COMM_PAGE_CPU_QUIESCENT_COUNTER T_DECL(test_quiescent_counter, "Validate that _COMM_PAGE_CPU_QUIESCENT_COUNTER increments", - T_META_CHECK_LEAKS(false)) + T_META_CHECK_LEAKS(false)) { T_SKIP("_COMM_PAGE_CPU_QUIESCENT_COUNTER doesn't exist on this system"); } @@ -52,7 +54,7 @@ T_DECL(test_quiescent_counter, "Validate that _COMM_PAGE_CPU_QUIESCENT_COUNTER i #else /* _COMM_PAGE_CPU_QUIESCENT_COUNTER */ T_DECL(test_quiescent_counter, "Validate that _COMM_PAGE_CPU_QUIESCENT_COUNTER increments", - T_META_CHECK_LEAKS(false)) + T_META_CHECK_LEAKS(false)) { int rv; @@ -74,8 +76,7 @@ T_DECL(test_quiescent_counter, "Validate that _COMM_PAGE_CPU_QUIESCENT_COUNTER i uint64_t last_counter = counter; T_LOG("first value of _COMM_PAGE_CPU_QUIESCENT_COUNTER is %llu", counter); - for (int i = 0 ; i < 10 ; i++) - { + for (int i = 0; i < 10; i++) { sleep(1); last_counter = counter; @@ -88,4 +89,3 @@ T_DECL(test_quiescent_counter, "Validate that _COMM_PAGE_CPU_QUIESCENT_COUNTER i } #endif /* _COMM_PAGE_CPU_QUIESCENT_COUNTER */ -