From ae9ed6753c47f6a86ec47768ff4b55524bef4c1e Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Sun, 7 Jun 2009 23:29:42 +0200 Subject: [PATCH] Bug fix: output bigger than 4 GB causes out of memory --- unittest/actual-results/test11 | 1 + unittest/actual-results/test12 | 1 + unittest/tests-to-run/test11.sh | 4 ++++ unittest/tests-to-run/test12.sh | 4 ++++ unittest/wanted-results/test11 | 1 + unittest/wanted-results/test12 | 1 + 6 files changed, 12 insertions(+) create mode 100644 unittest/actual-results/test11 create mode 100644 unittest/actual-results/test12 create mode 100644 unittest/tests-to-run/test11.sh create mode 100644 unittest/tests-to-run/test12.sh create mode 100644 unittest/wanted-results/test11 create mode 100644 unittest/wanted-results/test12 diff --git a/unittest/actual-results/test11 b/unittest/actual-results/test11 new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/unittest/actual-results/test11 @@ -0,0 +1 @@ +foo diff --git a/unittest/actual-results/test12 b/unittest/actual-results/test12 new file mode 100644 index 00000000..31eae36e --- /dev/null +++ b/unittest/actual-results/test12 @@ -0,0 +1 @@ +75da7edc12b129d109af92592c61da56 - diff --git a/unittest/tests-to-run/test11.sh b/unittest/tests-to-run/test11.sh new file mode 100644 index 00000000..91258179 --- /dev/null +++ b/unittest/tests-to-run/test11.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# Test the empty line +echo | parallel echo foo diff --git a/unittest/tests-to-run/test12.sh b/unittest/tests-to-run/test12.sh new file mode 100644 index 00000000..44a032c6 --- /dev/null +++ b/unittest/tests-to-run/test12.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# Test if we can deal with output > 4 GB +echo | parallel 'dd if=/dev/zero count=43 bs=100000k; echo 1; echo 2' | md5sum diff --git a/unittest/wanted-results/test11 b/unittest/wanted-results/test11 new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/unittest/wanted-results/test11 @@ -0,0 +1 @@ +foo diff --git a/unittest/wanted-results/test12 b/unittest/wanted-results/test12 new file mode 100644 index 00000000..31eae36e --- /dev/null +++ b/unittest/wanted-results/test12 @@ -0,0 +1 @@ +75da7edc12b129d109af92592c61da56 -