Loading libs/androidfw/tests/ObbFile_test.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,8 @@ #include <gtest/gtest.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> Loading @@ -43,7 +45,7 @@ protected: mFileName = new char[totalLen]; snprintf(mFileName, totalLen, "%s%s", mExternalStorage, TEST_FILENAME); int fd = ::open(mFileName, O_CREAT | O_TRUNC); int fd = ::open(mFileName, O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); if (fd < 0) { FAIL() << "Couldn't create " << mFileName << " for tests"; } Loading Loading
libs/androidfw/tests/ObbFile_test.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,8 @@ #include <gtest/gtest.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> Loading @@ -43,7 +45,7 @@ protected: mFileName = new char[totalLen]; snprintf(mFileName, totalLen, "%s%s", mExternalStorage, TEST_FILENAME); int fd = ::open(mFileName, O_CREAT | O_TRUNC); int fd = ::open(mFileName, O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); if (fd < 0) { FAIL() << "Couldn't create " << mFileName << " for tests"; } Loading