36 lines
602 B
Plaintext
36 lines
602 B
Plaintext
# Tests of DL_ATTACH_REQ and DL_DETACH_REQ
|
|
# Tested:
|
|
# DL_ATTACH
|
|
# OK
|
|
# DL_OUTSTATE
|
|
# DL_BADPPA
|
|
# (should test: ENOBUFS)
|
|
# DL_DETACH
|
|
# OK
|
|
# DL_OUTSTATE
|
|
|
|
open 1
|
|
|
|
check_state $1 dl_unattached
|
|
|
|
# Attempt to attach to a bad PPA
|
|
attach $1 0 dl_error_ack dl_badppa
|
|
|
|
# Valid attach attempt
|
|
attach $1 43
|
|
|
|
check_state $1 dl_unbound
|
|
|
|
# Attempt to attach when out of state (already attached)
|
|
attach $1 2 dl_error_ack dl_outstate
|
|
|
|
check_state $1 dl_unbound
|
|
|
|
# Valid detach attempt
|
|
detach $1
|
|
|
|
check_state $1 dl_unattached
|
|
|
|
# Attempt to detach when out of state (not attached)
|
|
detach $1 dl_error_ack dl_outstate
|