Skip to content

Commit bca1ac4

Browse files
committed
Generate and clean up empty file.
1 parent 9dc6366 commit bca1ac4

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/empty

Whitespace-only changes.

scripts/scp.test

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,14 @@ else
8989
fi
9090

9191
echo "Test of getting empty file"
92-
PWD=`pwd`
92+
touch $PWD/scripts/empty
9393
./examples/echoserver/echoserver -1 -R $ready_file &
9494
server_pid=$!
9595
create_port
9696
./examples/scpclient/wolfscp -u jill -P upthehill -p $port -S $PWD/scripts/empty:$PWD/empty
9797
RESULT=$?
9898
remove_ready_file
99+
rm -f $PWD/scripts/empty
99100

100101
if test -e $PWD/empty ; then
101102
rm $PWD/empty
@@ -106,13 +107,14 @@ else
106107
fi
107108

108109
echo "Test of sending empty file"
109-
PWD=`pwd`
110+
touch $PWD/scripts/empty
110111
./examples/echoserver/echoserver -1 -R $ready_file &
111112
server_pid=$!
112113
create_port
113114
./examples/scpclient/wolfscp -u jill -P upthehill -p $port -L $PWD/scripts/empty:$PWD/empty
114115
RESULT=$?
115116
remove_ready_file
117+
rm -f $PWD/scripts/empty
116118

117119
if test -e $PWD/empty ; then
118120
rm $PWD/empty

0 commit comments

Comments
 (0)