Index: src/platform/update_engine/test_utils.cc |
diff --git a/src/platform/update_engine/test_utils.cc b/src/platform/update_engine/test_utils.cc |
index 1c2f8959a115745ec89097f2511094358e7fe84d..6a86025456ddb9af2915e36fb30d4f128bc328f0 100644 |
--- a/src/platform/update_engine/test_utils.cc |
+++ b/src/platform/update_engine/test_utils.cc |
@@ -57,14 +57,15 @@ std::string Readlink(const std::string& path) { |
std::vector<char> GzipCompressData(const std::vector<char>& data) { |
const char fname[] = "/tmp/GzipCompressDataTemp"; |
if (!WriteFileVector(fname, data)) { |
- system((string("rm ") + fname).c_str()); |
+ EXPECT_EQ(0, system((string("rm ") + fname).c_str())); |
return vector<char>(); |
} |
- system((string("cat ") + fname + "|gzip>" + fname + ".gz").c_str()); |
- system((string("rm ") + fname).c_str()); |
+ EXPECT_EQ(0, system((string("cat ") + fname + "|gzip>" + |
+ fname + ".gz").c_str())); |
+ EXPECT_EQ(0, system((string("rm ") + fname).c_str())); |
vector<char> ret; |
EXPECT_TRUE(utils::ReadFile(string(fname) + ".gz", &ret)); |
- system((string("rm ") + fname + ".gz").c_str()); |
+ EXPECT_EQ(0, system((string("rm ") + fname + ".gz").c_str())); |
return ret; |
} |