ctdb-protocol: Fix marshalling for ctdb_uptime
[vlendec/samba-autobuild/.git] / ctdb / tests / cunit / porting_tests_001.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 socket="${TEST_VAR_DIR}/test_sock.$$"
6
7 remove_socket ()
8 {
9     rm -f "$socket"
10 }
11
12 test_cleanup remove_socket
13
14 result_filter ()
15 {
16         sed -e 's|^\(\.\./common/system_linux\.c\):[0-9][0-9]*|\1:LINE|'
17 }
18
19 uid=$(id -u)
20 if [ "$uid" -eq 0 ] ; then
21     ok "../common/system_linux.c:LINE interface 'fake' not found"
22 else
23     ok "../common/system_linux.c:LINE failed to open raw socket"
24 fi
25
26 unit_test porting_tests --socket=${socket}