Skip to content
Snippets Groups Projects
Commit 1e5901c4 authored by Simon McVittie's avatar Simon McVittie
Browse files

debian/tests/smoke: Adapt to new library API/ABI


We can't call capsule_init() any more, because capsule_init() is
only to be called by shim libraries now.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 2b7e6938
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
...@@ -34,8 +34,8 @@ print {$fh} <<'EOF'; ...@@ -34,8 +34,8 @@ print {$fh} <<'EOF';
int int
main (void) main (void)
{ {
capsule cap = capsule_init( LM_ID_NEWLM, "/host", NULL, NULL ); char *prefix = capsule_get_prefix( "/host", "libfoo.so.0" );
printf( "capsule_init() didn't crash\n" ); printf( "%s\n", prefix );
return 0; return 0;
} }
EOF EOF
...@@ -47,8 +47,9 @@ ok(! system('gcc -o trivial trivial.o $(pkg-config --libs capsule)'), ...@@ -47,8 +47,9 @@ ok(! system('gcc -o trivial trivial.o $(pkg-config --libs capsule)'),
'linked'); 'linked');
ok(-x 'trivial', 'executable'); ok(-x 'trivial', 'executable');
my $output; my $output;
$ENV{CAPSULE_LIBFOO_SO_0_PREFIX} = '/foo';
ok(run(['./trivial'], '>', \$output), 'executed successfully'); ok(run(['./trivial'], '>', \$output), 'executed successfully');
is($output, "capsule_init() didn't crash\n", 'printed desired output'); is($output, "/foo\n", 'printed desired output');
chdir('/'); chdir('/');
done_testing; done_testing;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment