]> git.saurik.com Git - apple/xnu.git/blobdiff - tests/pwrite_avoid_sigxfsz_28581610.c
xnu-7195.101.1.tar.gz
[apple/xnu.git] / tests / pwrite_avoid_sigxfsz_28581610.c
index 63fd25d7452eb35a592fb9399fe26e9d16907d1c..c03b4397816469ab7cf4c2653edcd0abad9dd0c7 100644 (file)
@@ -64,10 +64,9 @@ T_DECL(pwrite, "Tests avoiding SIGXFSZ with pwrite and odd offsets",
        T_SETUPEND;
 
        /* we want to get the EFBIG errno but without a SIGXFSZ signal */
-       T_EXPECTFAIL;
        if (!sigsetjmp(xfsz_jmpbuf, 1)) {
                signal(SIGXFSZ, xfsz_signal);
-               ret = pwrite(fd, buffer, sizeof buffer, LONG_MAX);
+               ret = pwrite(fd, buffer, sizeof buffer, QUAD_MAX);
                T_ASSERT_TRUE(((ret == -1) && (errno == EFBIG)),
                    "large offset %d", 13);
        } else {
@@ -78,11 +77,6 @@ T_DECL(pwrite, "Tests avoiding SIGXFSZ with pwrite and odd offsets",
 
        /* Negative offsets are invalid, no SIGXFSZ signals required */
        for (x = 0; offs[x] != 0; x++) {
-               /* only -1 gives the correct result */
-               if (-1 != offs[x]) {
-                       T_EXPECTFAIL;
-               }
-
                if (!sigsetjmp(xfsz_jmpbuf, 1)) {
                        signal(SIGXFSZ, xfsz_signal);
                        ret = pwrite(fd, buffer, sizeof buffer, offs[x]);