OXM, NXM: Add tests for all zero and all one masks
[openvswitch] / tests / lockfile.at
1 AT_BANNER([lockfile unit tests])
2
3 m4_define([CHECK_LOCKFILE],
4   [AT_SETUP([m4_translit([$1], [_], [ ])])
5    AT_KEYWORDS([lockfile])
6    AT_CHECK([test-lockfile $1], [0], [$1: success (m4_if(
7      [$2], [1], [$2 child], [$2 children]))
8 ])
9    AT_CLEANUP])
10
11 CHECK_LOCKFILE([lock_and_unlock], [0])
12 CHECK_LOCKFILE([lock_and_unlock_twice], [0])
13 CHECK_LOCKFILE([lock_blocks_same_process], [0])
14 CHECK_LOCKFILE([lock_blocks_same_process_twice], [0])
15 CHECK_LOCKFILE([lock_blocks_other_process], [1])
16 CHECK_LOCKFILE([lock_twice_blocks_other_process], [1])
17 CHECK_LOCKFILE([lock_and_unlock_allows_other_process], [1])
18 CHECK_LOCKFILE([lock_timeout_gets_the_lock], [1])
19 CHECK_LOCKFILE([lock_timeout_runs_out], [1])
20 CHECK_LOCKFILE([lock_multiple], [0])