]> git.saurik.com Git - apple/xnu.git/blobdiff - tests/ltable_exhaustion_test.c
xnu-4903.270.47.tar.gz
[apple/xnu.git] / tests / ltable_exhaustion_test.c
index 9bfeba8ea859ecded48de1c9579d9cfd64a95076..b2aecff534034ac41a484df801368df67df6e799 100644 (file)
@@ -8,10 +8,10 @@
 #define ITER 100
 
 T_DECL(ltable_exhaustion_test,
-       "check if allocating not used ltable entries can panic the system",
-       T_META_ASROOT(true))
+    "check if allocating not used ltable entries can panic the system",
+    T_META_ASROOT(true))
 {
-       int n_ltable_entries,n_ltable_entries_after;
+       int n_ltable_entries, n_ltable_entries_after;
        size_t len = sizeof(int);
        int i;
        mach_port_name_t portset;
@@ -31,5 +31,5 @@ T_DECL(ltable_exhaustion_test,
         */
        T_EXPECT_POSIX_SUCCESS(sysctlbyname("kern.n_ltable_entries", &n_ltable_entries_after, &len, NULL, 0), "kern.n_ltable_entries");
 
-       T_EXPECT_LE(n_ltable_entries_after, n_ltable_entries+ITER, "ltable before %d after %d iter %d", n_ltable_entries, n_ltable_entries_after, ITER);
+       T_EXPECT_LE(n_ltable_entries_after, n_ltable_entries + ITER, "ltable before %d after %d iter %d", n_ltable_entries, n_ltable_entries_after, ITER);
 }