]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Solaris regtest: final iteration for aligned_alloc
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 5 Mar 2023 15:24:44 +0000 (16:24 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 5 Mar 2023 15:24:44 +0000 (16:24 +0100)
memcheck/tests/solaris/aligned_alloc.c
memcheck/tests/solaris/aligned_alloc.vgtest

index 36456623e9f17673cd2b12f4a4c31c61fe57aa5e..813606223420eed91b1f32562ccac47fa96c7cca 100644 (file)
@@ -18,12 +18,10 @@ int main(void)
    //errno = 0;
    // align not power of 2
    p = aligned_alloc(40, 160);
-   assert(p == NULL && errno == EINVAL);
+   assert(p);
    errno = 0;
-   // the test below causes a segfault with musl 1.2.2
-   // apparently it has been 
 
-   // too big
+   // too big aligment
    if (sizeof(size_t) == 8)
    {
       p = aligned_alloc(16, 1UL<<48);
@@ -38,4 +36,3 @@ int main(void)
 
 }
 
-
index 07c1c4faf7a281a0d54cf316a19fcd4478c4778b..a20bccb007b8ece978e8215bddbc06eb27bd1f47 100644 (file)
@@ -1 +1,2 @@
 prog: aligned_alloc
+vgopts: -q