summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordoko <doko@6ca36cf4-e1d1-0310-8c6f-e303bb2178ca>2013-09-20 10:09:41 +0000
committerdoko <doko@6ca36cf4-e1d1-0310-8c6f-e303bb2178ca>2013-09-20 10:09:41 +0000
commit6cacece0e931d49a85224f373545e9139408e61c (patch)
treeb0c6f6c6882493e78b359b68a8743959f7884749
parentaa9a860d6095cf4cf2307b79b9409461e7fd50af (diff)
downloadgcc-47-6cacece0e931d49a85224f373545e9139408e61c.tar.gz
- Don't stop running the tests when ulimit -m fails
git-svn-id: svn://svn.debian.org/svn/gcccvs/branches/sid/gcc-4.7@6965 6ca36cf4-e1d1-0310-8c6f-e303bb2178ca
-rw-r--r--debian/rules28
1 files changed, 6 insertions, 2 deletions
diff --git a/debian/rules2 b/debian/rules2
index e137476..a9c2724 100644
--- a/debian/rules2
+++ b/debian/rules2
@@ -50,8 +50,12 @@ ifeq ($(findstring linux,$(DEB_HOST_GNU_SYSTEM)),linux)
else \
m=`vmstat --free --swap-free --kilobytes|awk '{m+=$$2}END{print int(m*.9)}'`; \
fi; \
- ulimit -m $$m; \
- echo "Limited memory for test runs to `ulimit -m`kB"
+ echo "Limiting memory for test runs to $${m}kB"; \
+ if ulimit -m $$m; then \
+ echo " limited to `ulimit -m`kB"; \
+ else \
+ echo " failed"; \
+ fi
else
ULIMIT_M = true
endif