mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Move temp_umask to test/util.
PiperOrigin-RevId: 298667595
This commit is contained in:
committed by
gVisor bot
parent
43abb24657
commit
b3c549d839
@@ -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",
|
||||
],
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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_
|
||||
Reference in New Issue
Block a user