1
0

Avoid ineffectual assignment

This commit is contained in:
dump_stack() 2018-12-10 03:02:11 +00:00
parent 630f6c7fe1
commit 556ead8594

View File

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