Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 21 lines (14 sloc) 651 Bytes
#! /bin/bash
set -xe
if [ -z "$MXQ_JOBID" ]; then
ulimit -d $((5*1024*1024)) # 5 GB
fi
fallocate -l $((10*1024*1024*1024)) $TMPDIR/file.dat
if ./test_malloc $((4*1024*1024*1024)); then echo OK; else echo FAIL; fi
if ./test_malloc $((6*1024*1024*1024)); then echo FAIL; else echo OK; fi
if ./map_file ro $TMPDIR/file.dat; then echo OK; else echo FAIL; fi
if ./map_file rw $TMPDIR/file.dat; then echo OK; else echo FAIL; fi
#./test_malloc $((4*1024*1024*1024)) &
#./test_malloc $((4*1024*1024*1024)) &
#wait # expect mxqd to kill us here over memory
#./test_malloc_fork $((4*1024*1024*1024)) # expect mxqd to kill us here over memory