Skip to content

Commit 0a6f1ba

Browse files
committed
WIP
1 parent 54f0760 commit 0a6f1ba

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/ci-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ jobs:
3737
- name: Run tests
3838
run: |
3939
for i in 1 2 3 4 5 6 7 8 9 10; do
40-
TEST_SHARED=1 TEST_SUBREAPER=1 prove -l -v t/01_run.t
40+
TEST_SHARED=1 TEST_SUBREAPER=1 prove -l -v t/01_run.t --merge
4141
done

t/01_run.t

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ subtest 'process execute()' => sub {
164164
diag "##################### $p";
165165
my @i = @Mojo::IOLoop::ReadWriteProcess::ISA;
166166
diag "### @i";
167-
$p->write("FOOBAR");
168-
is $p->getline, "you entered FOOBAR\n",
167+
$p->write("FOOBAR1");
168+
is $p->getline, "you entered FOOBAR1\n",
169169
'process received input and printed it back';
170170
$p->wait_stop();
171171
is $p->is_running, 0, 'process is not running anymore';
@@ -179,13 +179,15 @@ subtest 'process execute()' => sub {
179179
is $p->stdout, "TEST normal print\n", 'Get right output from stdout';
180180
is $p->err_getline, "TEST error print\n", 'Get right output from stderr';
181181
is $p->is_running, 1, 'process is still waiting for our input';
182-
$p->write("FOOBAR");
183-
is $p->getline, "you entered FOOBAR\n",
182+
$p->write("FOOBAR2");
183+
is $p->getline, "you entered FOOBAR2\n",
184184
'process received input and printed it back';
185185
$p->wait_stop();
186186
is $p->is_running, 0, 'process is not running anymore';
187187
is $p->getline, "FOO BAZ\n", 'process received extra arguments';
188188
is $p->exit_status, 100, 'able to retrieve function return';
189+
return;
190+
189191

190192
my $patience = $timeout / $interval;
191193
$p = Mojo::IOLoop::ReadWriteProcess->new(

0 commit comments

Comments
 (0)