Merge commit '36c66dd290d3ce6eb1ccd310d0c658d4a32bb8eb' as 'repos/effect'
This commit is contained in:
3
repos/effect/packages/platform-node-shared/test/fixtures/bash/no-permissions.sh
vendored
Normal file
3
repos/effect/packages/platform-node-shared/test/fixtures/bash/no-permissions.sh
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo "this should not run because it doesn't have execute permissions"
|
||||
31
repos/effect/packages/platform-node-shared/test/fixtures/bash/parent-exits-early.sh
vendored
Executable file
31
repos/effect/packages/platform-node-shared/test/fixtures/bash/parent-exits-early.sh
vendored
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This script spawns child processes and then exits early
|
||||
echo "Parent process started with PID $$"
|
||||
|
||||
# Spawn multiple child processes that will outlive the parent
|
||||
for i in {1..3}; do
|
||||
(
|
||||
# Child process
|
||||
child_pid=$BASHPID
|
||||
echo "Child $i started with PID $child_pid"
|
||||
|
||||
# Spawn a grandchild that runs for a long time
|
||||
(
|
||||
grandchild_pid=$BASHPID
|
||||
echo "Grandchild of child $i started with PID $grandchild_pid"
|
||||
# Keep running for 30 seconds
|
||||
sleep 30
|
||||
) &
|
||||
|
||||
# Keep the child running
|
||||
sleep 30
|
||||
) &
|
||||
done
|
||||
|
||||
# Give children time to start
|
||||
sleep 0.5
|
||||
|
||||
# Exit early (simulating a crash or early termination)
|
||||
echo "Parent exiting early with status 1..."
|
||||
exit 1
|
||||
32
repos/effect/packages/platform-node-shared/test/fixtures/bash/spawn-children.sh
vendored
Executable file
32
repos/effect/packages/platform-node-shared/test/fixtures/bash/spawn-children.sh
vendored
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This script spawns child processes to test process group cleanup
|
||||
echo "Parent process started with PID $$"
|
||||
|
||||
# Spawn multiple child processes
|
||||
for i in {1..3}; do
|
||||
(
|
||||
# Child process
|
||||
child_pid=$BASHPID
|
||||
echo "Child $i started with PID $child_pid"
|
||||
|
||||
# Spawn a grandchild that runs for a long time
|
||||
(
|
||||
grandchild_pid=$BASHPID
|
||||
echo "Grandchild of child $i started with PID $grandchild_pid"
|
||||
# Keep running for 60 seconds
|
||||
for j in {1..60}; do
|
||||
sleep 1
|
||||
done
|
||||
) &
|
||||
|
||||
# Keep the child running
|
||||
for j in {1..60}; do
|
||||
sleep 1
|
||||
done
|
||||
) &
|
||||
done
|
||||
|
||||
# Keep the parent running
|
||||
echo "Parent process waiting..."
|
||||
wait
|
||||
1
repos/effect/packages/platform-node-shared/test/fixtures/config/SHOUTING
vendored
Normal file
1
repos/effect/packages/platform-node-shared/test/fixtures/config/SHOUTING
vendored
Normal file
@@ -0,0 +1 @@
|
||||
value
|
||||
1
repos/effect/packages/platform-node-shared/test/fixtures/config/integer
vendored
Normal file
1
repos/effect/packages/platform-node-shared/test/fixtures/config/integer
vendored
Normal file
@@ -0,0 +1 @@
|
||||
123
|
||||
1
repos/effect/packages/platform-node-shared/test/fixtures/config/nested/config
vendored
Normal file
1
repos/effect/packages/platform-node-shared/test/fixtures/config/nested/config
vendored
Normal file
@@ -0,0 +1 @@
|
||||
hello
|
||||
1
repos/effect/packages/platform-node-shared/test/fixtures/config/secret
vendored
Normal file
1
repos/effect/packages/platform-node-shared/test/fixtures/config/secret
vendored
Normal file
@@ -0,0 +1 @@
|
||||
keepitsafe
|
||||
BIN
repos/effect/packages/platform-node-shared/test/fixtures/helloworld.tar.gz
vendored
Normal file
BIN
repos/effect/packages/platform-node-shared/test/fixtures/helloworld.tar.gz
vendored
Normal file
Binary file not shown.
1
repos/effect/packages/platform-node-shared/test/fixtures/text.txt
vendored
Normal file
1
repos/effect/packages/platform-node-shared/test/fixtures/text.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
lorem ipsum dolar sit amet
|
||||
Reference in New Issue
Block a user