File: list_replace_child.tref

package info (click to toggle)
librnd 4.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,812 kB
  • sloc: ansic: 126,990; sh: 2,602; makefile: 2,145; awk: 7
file content (16 lines) | stat: -rw-r--r-- 483 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Trying to replace an existing node in the list:
--- Before replacing
  li:{non-empty} FIRST te:{key1} LAST te:{key2}
   te:{key1} {val1}
   te:{key2} {val2}
list_replace_child: done
--- After replacing
  li:{non-empty} FIRST te:{} LAST te:{key2}
   te:{} {for_replacing}
   te:{key2} {val2}
Trying to replace a node that is not even on the list
--- Before replacing
  li:{empty} 
Error during list_replace_child: boundary check error: out of bounds
--- After replacing
  li:{empty}