Skip to content

Commit 4af204d

Browse files
committed
check: Reword the warning to be more prescriptive
1 parent 146264c commit 4af204d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/etc/check-sanitycheck.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ def inner():
3939
def check_rlimit_core():
4040
soft, hard = resource.getrlimit(resource.RLIMIT_CORE)
4141
if soft > 0:
42-
error_unless_permitted('ALLOW_NONZERO_RLIMIT_CORE',
43-
("The rust test suite will segfault many rustc's in the debuginfo phase.\n"
44-
"set ALLOW_NONZERO_ULIMIT to ignore this warning\n"))
42+
error_unless_permitted('ALLOW_NONZERO_RLIMIT_CORE', """\
43+
RLIMIT_CORE is set to a nonzero value (%d). During debuginfo, the test suite
44+
will segfault many rustc's, creating many potentially large core files.
45+
set ALLOW_NONZERO_RLIMIT_CORE to ignore this warning
46+
""" % (soft))
4547

4648

4749
def main():

0 commit comments

Comments
 (0)