]> git.proxmox.com Git - swtpm.git/commitdiff
tests: Use file descriptor 100 rather than 200 (fix OpenBSD)
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 2 Apr 2019 13:42:52 +0000 (09:42 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Tue, 2 Apr 2019 22:08:06 +0000 (18:08 -0400)
Use file descriptor 100 rather than 200 to pass on OpenBSD

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
tests/test_commandline

index bf2d719b6f3b34b3c02a2a33f49ac4111087a89c..317dbf82de09eefaf5cece1b624fe49b1692f0ef 100755 (executable)
@@ -140,13 +140,13 @@ if [ $RES -ne 0 ]; then
        exit 1
 fi
 
-exec 200<>/dev/tcp/localhost/$PORT
+exec 100<>/dev/tcp/localhost/$PORT
 if [ $? -ne 0 ]; then
        echo "Test 2 failed: Could not connect to TPM"
        exit 1
 fi
 
-exec 200>&-
+exec 100>&-
 
 wait_port_closed $PORT $PID
 # Give it time to fully shut down