Skip to content
Snippets Groups Projects
Commit 404dd2bd authored by bbartels's avatar bbartels
Browse files

quad: add 512 MB RAM limit to test scripts using virtual quad

parent 0976d969
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,7 @@ Timeout::timeout(30) { ...@@ -90,7 +90,7 @@ Timeout::timeout(30) {
sleep 1 sleep 1
# Start virtual quad # Start virtual quad
quad_pid = Process.spawn("./virt-quad") quad_pid = Process.spawn("./virt-quad", :rlimit_as => 536870912) # 512 MiB RAM
sleep 5 sleep 5
......
...@@ -29,7 +29,7 @@ Timeout::timeout(30) { ...@@ -29,7 +29,7 @@ Timeout::timeout(30) {
sleep 1 sleep 1
# Start virtual quad # Start virtual quad
quad_pid = Process.spawn("./virt-quad") quad_pid = Process.spawn("./virt-quad", :rlimit_as => 536870912) # 512 MiB RAM
sleep 5 sleep 5
...@@ -50,11 +50,15 @@ Timeout::timeout(30) { ...@@ -50,11 +50,15 @@ Timeout::timeout(30) {
File.write(UART_RX, [0xBE, 1, 0, 0, 0, 0, 0, 0xBF].pack("CCCCCCCC")) File.write(UART_RX, [0xBE, 1, 0, 0, 0, 0, 0, 0xBF].pack("CCCCCCCC"))
fifo = File.open(UART_TX) fifo = File.open(UART_TX)
# Receive the header
msg = [] msg = []
for i in 1..7 for i in 1..7
sleep 0.010 sleep 0.010
msg.push(fifo.read(1)) msg.push(fifo.read(1))
end end
# Receive the remaining data, according to the header specified length
length = msg[5..7].join().unpack("S")[0] length = msg[5..7].join().unpack("S")[0]
msg = [] msg = []
for i in 1..length for i in 1..length
......
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