Fix crash on test failure

Don't check objs[0] and objs[1] if len(objs) != 2.

Test: cc_test.go
Change-Id: I2ba459a683764691ebf28db3944d7a1e9088eb76
diff --git a/cc/cc_test.go b/cc/cc_test.go
index 15e45d0..4d8c4fb 100644
--- a/cc/cc_test.go
+++ b/cc/cc_test.go
@@ -172,10 +172,7 @@
 	for _, o := range ld.Inputs {
 		objs = append(objs, o.Base())
 	}
-	if len(objs) != 2 {
-		t.Errorf("inputs of libTest is expected to 2, but was %d.", len(objs))
-	}
-	if objs[0] != "foo.o" || objs[1] != "bar.o" {
+	if len(objs) != 2 || objs[0] != "foo.o" || objs[1] != "bar.o" {
 		t.Errorf("inputs of libTest must be []string{\"foo.o\", \"bar.o\"}, but was %#v.", objs)
 	}
 }