]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Darwin regtest: add testcase for bug390269
authorPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 20 Nov 2023 12:52:30 +0000 (13:52 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 20 Nov 2023 12:52:30 +0000 (13:52 +0100)
.gitignore
none/tests/darwin/Makefile.am
none/tests/darwin/bug228343.c
none/tests/darwin/bug390269.c [new file with mode: 0644]
none/tests/darwin/bug390269.stderr.exp [new file with mode: 0644]
none/tests/darwin/bug390269.vgtest [new file with mode: 0644]

index 7ccf1c2dec78c5bc49aaf3f1f8291a0e83192761..70c436fbae23408ca91759176d447898fabed896 100644 (file)
 /none/tests/darwin/apple-main-arg
 /none/tests/darwin/bug228343
 /none/tests/darwin/bug254164
+/none/tests/darwin/bug390269
 /none/tests/darwin/rlimit
 
 # /none/tests/linux/
index 1473e80089e53aa4efcddfa2afc262d95ec6d1e7..f9dc367ce59c81bc06c56d3102906ea863006f7b 100644 (file)
@@ -8,6 +8,7 @@ EXTRA_DIST = \
        apple-main-arg.stderr.exp apple-main-arg.vgtest \
        bug228343.stderr.exp bug228343.stdout.exp bug228343.vgtest \
        bug254164.stderr.exp bug254164.vgtest \
+       bug390269.stderr.exp bug390269.vgtest \
        rlimit.stderr.exp rlimit.vgtest
 
 check_PROGRAMS = \
@@ -15,6 +16,7 @@ check_PROGRAMS = \
        apple-main-arg \
        bug228343 \
        bug254164 \
+       bug390269 \
        rlimit
 
 
index d7a0ab276cf7d3120429742bea3f64274c54f41a..f25f99e2243354391ef6117399720321412b3fd0 100644 (file)
@@ -38,6 +38,7 @@ void *Worker() {
    void *x = malloc((i % 64) + 1);
    free (x);
  }
+ return NULL;
 }
 
 void SignalHandlerWithSpinlock(int sig, siginfo_t *siginfo, void *context) {
diff --git a/none/tests/darwin/bug390269.c b/none/tests/darwin/bug390269.c
new file mode 100644 (file)
index 0000000..fcc34e7
--- /dev/null
@@ -0,0 +1,12 @@
+#include <unistd.h>
+#include <stdio.h>
+
+int main(int argc, char** argv)
+{
+   char buffer[] = "boxbackup.recombinetemp.1.XXXXXX";
+   if(mkstemp(buffer) < 0)
+   {
+      perror("mkstemp");
+   }
+   return 0;
+}       
diff --git a/none/tests/darwin/bug390269.stderr.exp b/none/tests/darwin/bug390269.stderr.exp
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/none/tests/darwin/bug390269.vgtest b/none/tests/darwin/bug390269.vgtest
new file mode 100644 (file)
index 0000000..6a4dbb8
--- /dev/null
@@ -0,0 +1,3 @@
+prog: bug390269
+vgopts: -q
+post: rm -f boxbackup.recombinetemp.1.*