summaryrefslogtreecommitdiff
path: root/tests/14_socket_diff.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/14_socket_diff.sh')
-rwxr-xr-xtests/14_socket_diff.sh44
1 files changed, 0 insertions, 44 deletions
diff --git a/tests/14_socket_diff.sh b/tests/14_socket_diff.sh
deleted file mode 100755
index d7d393f..0000000
--- a/tests/14_socket_diff.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/bash
-
-TEST_ID="14"
-TEST_NAME="Socket device difference"
-
-CREATE=`pwd`/$1
-DEPLOY=`pwd`/$2
-TEST_TOOLS=$3
-
-. ./test_lib.sh
-
-############# Test specific code ############
-# sockets can't be changed sensibly, test that it hasn't been
-
-SOCKBIND=`mktemp`
-setup_origin () {
- gcc sockbind.c -o $SOCKBIND 2>/dev/null >/dev/null
- $SOCKBIND "$ORIGIN/tochange" &
- SOCKBINDPID=$!
- until test -S "$ORIGIN/tochange"; do :; done
- kill $SOCKBINDPID
- wait $SOCKBINDPID 2>/dev/null || true #wait returns false
-}
-
-setup_target () {
- $SOCKBIND "$TARGET/tochange" &
- SOCKBINDPID=$!
- until test -S "$TARGET/tochange"; do :; done
- kill $SOCKBINDPID &&
- wait $SOCKBINDPID 2>/dev/null #surpress terminated output
- rm -f $SOCKBIND
-}
-
-#tbdiff-create should fail to make a patch if it would have to change a socket
-create_test_return () {
- test "$1" != 0
-}
-
-check_results () {
- false #test should never reach this
-}
-
-#############################################
-main $@