Skip to content
Snippets Groups Projects
Commit 15a497e4 authored by David Bigagli's avatar David Bigagli
Browse files

Modify test 17.15 to handle ulimit -c 1

parent 0c4db102
No related branches found
No related tags found
No related merge requests found
...@@ -95,6 +95,36 @@ expect { ...@@ -95,6 +95,36 @@ expect {
} }
} }
if {$cur_core != -1} {
set limit_core [expr ($cur_core / 1024) - 2]
if {$limit_core < 1} {
set limit_core [expr $cur_core / 1024]
}
}
if {$cur_fsize != -1} {
set limit_fsize [expr ($cur_fsize / 1024) - 2]
if {$limit_fsize < 1} {
set limit_fsize [expr $cur_fsize / 1024]
}
}
if {$cur_nofile != -1} {
set limit_nofile [expr $cur_nofile - 2]
if {$limit_nofile < 1} {
set limit_nofile $cur_nofile
}
}
if {$cur_nproc != -1} {
set limit_nproc [expr $cur_nproc - 200]
if {$limit_nproc < 1} {
set limit_nofile $cur_nproc
}
}
if {$cur_stack != -1} {
set limit_stack [expr ($cur_stack / 1024) - 2]
if {$limit_stack < 1} {
set limit_stack [expr $cur_stack / 1024]
}
}
# #
# Spawn a job via sbatch to print environment variables and user limits # Spawn a job via sbatch to print environment variables and user limits
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment