From 6a5a6a9b36de8e1305b22b4859e390c3ae838e97 Mon Sep 17 00:00:00 2001 From: Morris Jette <jette@schedmd.com> Date: Fri, 13 Dec 2013 08:26:50 -0800 Subject: [PATCH] Avoid test generating core file on segv We do not want to look at the core file, so avoid generating it and then having to manually clear it later. --- testsuite/expect/test1.71 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testsuite/expect/test1.71 b/testsuite/expect/test1.71 index 9bfa0c8303e..ab43c3dc04d 100755 --- a/testsuite/expect/test1.71 +++ b/testsuite/expect/test1.71 @@ -1,9 +1,7 @@ #!/usr/bin/expect ############################################################################ # Purpose: Test of SLURM functionality -# validates that srun exit code matches that of a -# test program -# +# validates that srun exit code matches that of a test program # # Output: "TEST: #.#" followed by "SUCCESS" if test was successful, OR # "FAILURE: ..." otherwise with an explanation of the failure, OR @@ -55,7 +53,9 @@ int main(char **argv, int argc) exec $bin_cc -std=c99 -o $file_out $file_c exec $bin_chmod 700 $file_out +# Set core size ulimit to zero make_bash_script $script " +ulimit -c 0 ./$file_out echo exit_code = $? " -- GitLab