]> sourceware.org Git - valgrind.git/commitdiff
Darwin regtest: again, forgot to delete errno
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 5 Mar 2023 16:22:59 +0000 (17:22 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 5 Mar 2023 16:22:59 +0000 (17:22 +0100)
Setting errno on Darwin not supported on Valgrind.

memcheck/tests/darwin/aligned_alloc.c

index 8d38f593bf331be0a535b231b97853b614fe1044..f8d580538f2187fa78beaa033c02afad62c86327 100644 (file)
@@ -9,15 +9,12 @@ int main(void)
    // zero size
    p = aligned_alloc(0, 8);
    assert(p == NULL);
-   errno = 0;
    // non multiple of alignment fails on Darwin
    p = aligned_alloc(8, 25);
    assert(p == NULL);
-   errno = 0;
    // align not power of 2
    p = aligned_alloc(40, 160);
    assert(p == NULL);
-   errno = 0;
 
    // @todo PJF this works standalone
    // but for some reason it doesn't fail in arena_memalign
This page took 0.029698 seconds and 5 git commands to generate.