Move temp_umask to test/util.

PiperOrigin-RevId: 298667595
This commit is contained in:
Adin Scannell
2020-03-03 12:38:00 -08:00
committed by gVisor bot
parent 43abb24657
commit b3c549d839
5 changed files with 13 additions and 12 deletions
+2 -7
View File
@@ -166,11 +166,6 @@ cc_library(
],
)
cc_library(
name = "temp_umask",
hdrs = ["temp_umask.h"],
)
cc_library(
name = "unix_domain_socket_test_util",
testonly = 1,
@@ -1140,11 +1135,11 @@ cc_binary(
srcs = ["mkdir.cc"],
linkstatic = 1,
deps = [
":temp_umask",
"//test/util:capability_util",
"//test/util:fs_util",
gtest,
"//test/util:temp_path",
"//test/util:temp_umask",
"//test/util:test_main",
"//test/util:test_util",
],
@@ -1299,12 +1294,12 @@ cc_binary(
srcs = ["open_create.cc"],
linkstatic = 1,
deps = [
":temp_umask",
"//test/util:capability_util",
"//test/util:file_descriptor",
"//test/util:fs_util",
gtest,
"//test/util:temp_path",
"//test/util:temp_umask",
"//test/util:test_main",
"//test/util:test_util",
],
+1 -1
View File
@@ -18,10 +18,10 @@
#include <unistd.h>
#include "gtest/gtest.h"
#include "test/syscalls/linux/temp_umask.h"
#include "test/util/capability_util.h"
#include "test/util/fs_util.h"
#include "test/util/temp_path.h"
#include "test/util/temp_umask.h"
#include "test/util/test_util.h"
namespace gvisor {
+1 -1
View File
@@ -19,11 +19,11 @@
#include <unistd.h>
#include "gtest/gtest.h"
#include "test/syscalls/linux/temp_umask.h"
#include "test/util/capability_util.h"
#include "test/util/file_descriptor.h"
#include "test/util/fs_util.h"
#include "test/util/temp_path.h"
#include "test/util/temp_umask.h"
#include "test/util/test_util.h"
namespace gvisor {
+6
View File
@@ -350,3 +350,9 @@ cc_library(
":save_util",
],
)
cc_library(
name = "temp_umask",
testonly = 1,
hdrs = ["temp_umask.h"],
)
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef GVISOR_TEST_SYSCALLS_TEMP_UMASK_H_
#define GVISOR_TEST_SYSCALLS_TEMP_UMASK_H_
#ifndef GVISOR_TEST_UTIL_TEMP_UMASK_H_
#define GVISOR_TEST_UTIL_TEMP_UMASK_H_
#include <sys/stat.h>
#include <sys/types.h>
@@ -36,4 +36,4 @@ class TempUmask {
} // namespace testing
} // namespace gvisor
#endif // GVISOR_TEST_SYSCALLS_TEMP_UMASK_H_
#endif // GVISOR_TEST_UTIL_TEMP_UMASK_H_