Lines Matching +full:mount +full:- +full:observe
2 // Use of this source code is governed by a BSD-style license that can be
249 // TODO(fxbug.dev/124840): Re-enable once the platform behaviour is fixed.
272 // a sub-path of that path (e.g. "/data/staged"), causes the process launch to
274 // TODO(fxbug.dev/124840): Re-enable once the platform behaviour is fixed.
276 // Create a tempdir to transfer to a sub-directory path. in TEST_F()
317 // Mount the tempdir to "/foo". in TEST_F()
355 << "Clone policy violation: found non-tmp directory " in CheckOnlyOnePathExists()
450 // Launch a non-existent binary, causing fdio_spawn() to fail. in TEST_F()
457 // handles[1] should observe a channel-closed signal. in TEST_F()
483 // handles[1] should observe a channel-closed signal. in TEST_F()
502 CommandLine::ForCurrentProcess()->GetProgram().BaseName().value() + in TEST_F()
521 // on macOS a per-thread cwd is set when using LaunchProcess().
532 // Create a non-main thread. in MULTIPROCESS_TEST_MAIN()
537 // A synchronization primitive used to wait for work done on the non-main in MULTIPROCESS_TEST_MAIN()
543 // Test that a non-main thread has the right cwd. in MULTIPROCESS_TEST_MAIN()
544 task_runner->PostTask(FROM_HERE, BindOnce(&CheckCwdIsExpected, temp_dir)); in MULTIPROCESS_TEST_MAIN()
545 task_runner->PostTask(FROM_HERE, signal_event); in MULTIPROCESS_TEST_MAIN()
554 task_runner->PostTask(FROM_HERE, in MULTIPROCESS_TEST_MAIN()
556 task_runner->PostTask(FROM_HERE, BindOnce(&CheckCwdIsExpected, home_dir)); in MULTIPROCESS_TEST_MAIN()
557 task_runner->PostTask(FROM_HERE, signal_event); in MULTIPROCESS_TEST_MAIN()
569 task_runner->PostTask(FROM_HERE, BindOnce(&CheckCwdIsExpected, temp_dir)); in MULTIPROCESS_TEST_MAIN()
570 task_runner->PostTask(FROM_HERE, signal_event); in MULTIPROCESS_TEST_MAIN()
575 task_runner->PostTask(FROM_HERE, in MULTIPROCESS_TEST_MAIN()
852 static const char kEventToTriggerHandleSwitch[] = "event-to-trigger-handle";
856 CommandLine::ForCurrentProcess()->GetSwitchValueASCII( in MULTIPROCESS_TEST_MAIN()
908 command.AppendArg("-x"); in TEST_F()
917 int exit_code = -1; in TEST_F()
929 command.AppendArg("-x"); in TEST_F()
958 // rlim_t is a uint64_t - clip to maxint. We do this since FD #s are ints in GetMaxFilesOpenInProcess()
973 // Declarations from 12.3 xnu-8020.101.4/bsd/sys/guarded.h (not in the SDK).
989 // Attempt to set a file-descriptor guard on |fd|. In case of success, remove
1010 if (ret == -1) in CanGuardFd()
1039 if ((fd = HANDLE_EINTR(dup(i))) != -1) { in MULTIPROCESS_TEST_MAIN()
1069 int num_open_files = -1; in CountOpenFDsInChild()
1075 // Compiler-based ThreadSanitizer makes this test slow. in CountOpenFDsInChild()
1116 // Write to stdio so the parent process can observe output. in MULTIPROCESS_TEST_MAIN()
1195 // Write to the pipe so the parent process can observe output. in MULTIPROCESS_TEST_MAIN()
1365 {test_helper_path_.value(), FILE_PATH_LITERAL("-e"), kBaseTest})); in TEST_F()
1374 EXPECT_TRUE(env->SetVar("BASE_TEST", "testing")); in TEST_F()
1387 EXPECT_TRUE(env->SetVar("BASE_TEST", kLargeString)); in TEST_F()
1397 // Test a non-trival value for clone_flags. in TEST_F()
1453 ASSERT_NE(-1, pid); in TEST()