[llvm-commits] CVS: llvm/test/QMTestDB/QMTest/llvm.py

John Criswell criswell at cs.uiuc.edu
Tue Sep 16 09:59:04 PDT 2003


Changes in directory llvm/test/QMTestDB/QMTest:

llvm.py updated: 1.6 -> 1.7

---
Log message:

Modified the calls to setrlimit() to make Solaris happy.



---
Diffs of the changes:

Index: llvm/test/QMTestDB/QMTest/llvm.py
diff -u llvm/test/QMTestDB/QMTest/llvm.py:1.6 llvm/test/QMTestDB/QMTest/llvm.py:1.7
--- llvm/test/QMTestDB/QMTest/llvm.py:1.6	Mon Sep 15 17:14:20 2003
+++ llvm/test/QMTestDB/QMTest/llvm.py	Tue Sep 16 09:57:49 2003
@@ -48,7 +48,8 @@
 		#
 		# Set the core dump size
 		#
-		resource.setrlimit (resource.RLIMIT_CORE, (context['coresize'],-1))
+		coresize=int(context['coresize'])
+		resource.setrlimit (resource.RLIMIT_CORE, (coresize,coresize))
 
 		#
 		# Fetch the source and build root directories from the context.
@@ -124,7 +125,8 @@
 		#
 		# Set the core dump size
 		#
-		resource.setrlimit (resource.RLIMIT_CORE, (context['coresize'],-1))
+		coresize=int(context['coresize'])
+		resource.setrlimit (resource.RLIMIT_CORE, (coresize,coresize))
 
 		#
 		# Fetch the source and build root directories from the context.
@@ -196,7 +198,8 @@
 		#
 		# Set the core dump size
 		#
-		resource.setrlimit (resource.RLIMIT_CORE, (context['coresize'],-1))
+		coresize=int(context['coresize'])
+		resource.setrlimit (resource.RLIMIT_CORE, (coresize,coresize))
 
 		#
 		# Fetch the source and build root directories from the context.
@@ -288,7 +291,8 @@
 		#
 		# Set the core dump size
 		#
-		resource.setrlimit (resource.RLIMIT_CORE, (context['coresize'],-1))
+		coresize=int(context['coresize'])
+		resource.setrlimit (resource.RLIMIT_CORE, (coresize,coresize))
 
 		#
 		# Fetch the source and build root directories from the context.
@@ -359,7 +363,8 @@
 		#
 		# Set the core dump size
 		#
-		resource.setrlimit (resource.RLIMIT_CORE, (context['coresize'],-1))
+		coresize=int(context['coresize'])
+		resource.setrlimit (resource.RLIMIT_CORE, (coresize,coresize))
 
 		#
 		# Fetch the source and build root directories from the context.
@@ -430,7 +435,8 @@
 		#
 		# Set the core dump size
 		#
-		resource.setrlimit (resource.RLIMIT_CORE, (context['coresize'],-1))
+		coresize=int(context['coresize'])
+		resource.setrlimit (resource.RLIMIT_CORE, (coresize,coresize))
 
 		#
 		# Fetch the source and build root directories from the context.
@@ -570,7 +576,8 @@
 		#
 		# Set the core dump size
 		#
-		resource.setrlimit (resource.RLIMIT_CORE, (context['coresize'],-1))
+		coresize=int(context['coresize'])
+		resource.setrlimit (resource.RLIMIT_CORE, (coresize,coresize))
 
 		#
 		# Determine where the build directory is located.
@@ -668,7 +675,8 @@
 		#
 		# Set the core dump size
 		#
-		resource.setrlimit (resource.RLIMIT_CORE, (context['coresize'],-1))
+		coresize=int(context['coresize'])
+		resource.setrlimit (resource.RLIMIT_CORE, (coresize,coresize))
 
 		#
 		# Fetch the source and build root directories from the context.
@@ -730,7 +738,8 @@
 		#
 		# Set the core dump size
 		#
-		resource.setrlimit (resource.RLIMIT_CORE, (context['coresize'],-1))
+		coresize=int(context['coresize'])
+		resource.setrlimit (resource.RLIMIT_CORE, (coresize,coresize))
 
 		#
 		# Fetch the source and build root directories from the context.
@@ -788,7 +797,8 @@
 		#
 		# Set the core dump size
 		#
-		resource.setrlimit (resource.RLIMIT_CORE, (context['coresize'],-1))
+		coresize=int(context['coresize'])
+		resource.setrlimit (resource.RLIMIT_CORE, (coresize,coresize))
 
 		#
 		# Fetch the source and build root directories from the context.
@@ -846,7 +856,7 @@
 		#
 		# Set the core dump size
 		#
-		coresize=context['coresize']
+		coresize=int(context['coresize'])
 		resource.setrlimit (resource.RLIMIT_CORE, (coresize,coresize))
 
 		#
@@ -958,7 +968,8 @@
 		#
 		# Set the core dump size
 		#
-		resource.setrlimit (resource.RLIMIT_CORE, (context['coresize'],-1))
+		coresize=int(context['coresize'])
+		resource.setrlimit (resource.RLIMIT_CORE, (coresize,coresize))
 
 		#
 		# Fetch the source and build root directories from the context.
@@ -1052,7 +1063,8 @@
 		#
 		# Set the core dump size
 		#
-		resource.setrlimit (resource.RLIMIT_CORE, (context['coresize'],-1))
+		coresize=int(context['coresize'])
+		resource.setrlimit (resource.RLIMIT_CORE, (coresize,coresize))
 
 		#
 		# Determine the pathnames to the source code and object code.
@@ -1137,7 +1149,8 @@
 		#
 		# Set the core dump size
 		#
-		resource.setrlimit (resource.RLIMIT_CORE, (context['coresize'],-1))
+		coresize=int(context['coresize'])
+		resource.setrlimit (resource.RLIMIT_CORE, (coresize,coresize))
 
 		#
 		# Determine the pathnames to the source code and object code.





More information about the llvm-commits mailing list