Description:
allow __NR_time in box
git-svn-id: http://theory.cpe.ku.ac.th/grader/judge/trunk/scripts@266 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r62:05b65064b5ca - - 2 files changed: 2 inserted, 1 deleted
@@ -300,6 +300,7 | |||||
|
300 | case __NR__sysctl: |
|
300 | case __NR__sysctl: |
|
301 | return (filter_syscalls == 1); |
|
301 | return (filter_syscalls == 1); |
|
302 | case __NR_times: |
|
302 | case __NR_times: |
|
|
303 | + case __NR_time: | ||
|
303 | return allow_times; |
|
304 | return allow_times; |
|
304 | case __NR_kill: |
|
305 | case __NR_kill: |
|
305 | if (u->regs.ebx == box_pid) |
|
306 | if (u->regs.ebx == box_pid) |
@@ -82,7 +82,7 | |||||
|
82 |
|
82 | ||
|
83 | # Run the program. |
|
83 | # Run the program. |
|
84 | #run_command = "/usr/bin/time -f \"#{time_output_format}\" 2>run_result #{problem_home}/script/box_new -a 2 -f -t #{time_limit} -m #{mem_limit} -i #{input_file_name} -o output.txt #{program_name}" |
|
84 | #run_command = "/usr/bin/time -f \"#{time_output_format}\" 2>run_result #{problem_home}/script/box_new -a 2 -f -t #{time_limit} -m #{mem_limit} -i #{input_file_name} -o output.txt #{program_name}" |
|
85 | - run_command = "#{problem_home}/script/box -a 2 -f -t #{time_limit} -m #{mem_limit} -i #{input_file_name} -o output.txt #{program_name} 2>run_result" |
|
85 | + run_command = "#{problem_home}/script/box -a 2 -f -T -t #{time_limit} -m #{mem_limit} -i #{input_file_name} -o output.txt #{program_name} 2>run_result" |
|
86 | log "Running test #{test_num}..." |
|
86 | log "Running test #{test_num}..." |
|
87 | log run_command |
|
87 | log run_command |
|
88 | log |
|
88 | log |
You need to be logged in to leave comments.
Login now