mirror of https://github.com/martanne/abduco
Remove trailing white spaces
This commit is contained in:
parent
0ca1a36cbc
commit
77db580a63
4
abduco.c
4
abduco.c
|
|
@ -93,7 +93,7 @@ struct Client {
|
||||||
Client *next;
|
Client *next;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Client *clients;
|
Client *clients;
|
||||||
int socket;
|
int socket;
|
||||||
Packet pty_output;
|
Packet pty_output;
|
||||||
|
|
@ -510,7 +510,7 @@ int main(int argc, char *argv[]) {
|
||||||
action = 'c';
|
action = 'c';
|
||||||
goto redo;
|
goto redo;
|
||||||
}
|
}
|
||||||
die("attach-session");
|
die("attach-session");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ expected_abduco_output() {
|
||||||
|
|
||||||
check_environment() {
|
check_environment() {
|
||||||
[ "`$ABDUCO | wc -l`" -gt 1 ] && echo Abduco session exists && return 1;
|
[ "`$ABDUCO | wc -l`" -gt 1 ] && echo Abduco session exists && return 1;
|
||||||
pgrep abduco && echo Abduco process exists && return 1;
|
pgrep abduco && echo Abduco process exists && return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -78,7 +78,7 @@ run_test_detached() {
|
||||||
$cmd &> /dev/null
|
$cmd &> /dev/null
|
||||||
expected_abduco_output "$name" $? > "$output_expected"
|
expected_abduco_output "$name" $? > "$output_expected"
|
||||||
|
|
||||||
if $ABDUCO -n "$name" $cmd &> /dev/null && sleep 1 &&
|
if $ABDUCO -n "$name" $cmd &> /dev/null && sleep 1 &&
|
||||||
$ABDUCO -a "$name" 2>&1 | head -n -1 | sed 's/.$//' > "$output" &&
|
$ABDUCO -a "$name" 2>&1 | head -n -1 | sed 's/.$//' > "$output" &&
|
||||||
diff -u "$output_expected" "$output" && check_environment; then
|
diff -u "$output_expected" "$output" && check_environment; then
|
||||||
rm "$output" "$output_expected"
|
rm "$output" "$output_expected"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue