1
0
Fork 0

Avoid ineffectual assignment

timestamps
dump_stack() 2018-12-10 03:02:11 +00:00
parent 630f6c7fe1
commit 556ead8594
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ func TestQemuSystemCommand(t *testing.T) {
t.Fatal("Wrong output from `cat /etc/passwd` by user")
}
output, err = qemu.Command("user", "cat /etc/shadow")
_, err = qemu.Command("user", "cat /etc/shadow")
// unsuccessful is good because user must not read /etc/shadow
if err == nil {
t.Fatal("User have rights for /etc/shadow. WAT?!")