Skip to content

Commit 8e0b69c

Browse files
committed
use try_ok instead of lives that doe not do anything by itself
1 parent 609e6b3 commit 8e0b69c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Graham Ollis <[email protected]>
7777

7878
# COPYRIGHT AND LICENSE
7979

80-
This software is copyright (c) 2018 by Graham Ollis.
80+
This software is copyright (c) 2018-2022 by Graham Ollis.
8181

8282
This is free software; you can redistribute it and/or modify it under
8383
the same terms as the Perl 5 programming language system itself.

lib/Test2/Tools/FFI.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ In your t/mytest.t:
3131
3232
use Test2::V0;
3333
use Test2::Tools::FFI;
34-
34+
3535
is(
3636
ffi->test->function( mytest => [] => 'int')->call,
3737
42,

t/test2_tools_ffi.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ subtest 'ffi->runtime' => sub {
1515
},
1616
;
1717

18-
lives { $ffi->function(t2t_simple_init => [] => 'void') };
18+
try_ok { $ffi->function(t2t_simple_init => [] => 'void') };
1919

2020
is(
2121
intercept { ffi->runtime->symbol_ok('xxx') },
@@ -70,7 +70,7 @@ subtest 'ffi->combined' => sub {
7070
}
7171
;
7272

73-
lives { $ffi->function(t2t_simple_init => [] => 'void') };
73+
try_ok { $ffi->function(t2t_simple_init => [] => 'void') };
7474
};
7575

7676
subtest 'call diagnostics from c' => sub {

t/test2_tools_ffi__api1.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ subtest 'ffi->combined' => sub {
5454
}
5555
;
5656

57-
lives { $ffi->function(t2t_simple_init => [] => 'void') };
57+
try_ok { $ffi->function(t2t_simple_init => [] => 'void') };
5858
};
5959

6060
done_testing

0 commit comments

Comments
 (0)