Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Libvdpau
Commits
61d045c0
Commit
61d045c0
authored
Dec 20, 2019
by
johnmartin-oracle
Committed by
Aaron Plattner
Dec 20, 2019
Browse files
test: Use libXext.so.0 instead of libXext.so.6 on Solaris
Reviewed-by:
Aaron Plattner
<
aplattner@nvidia.com
>
parent
f1fa72e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/dlclose.c
View file @
61d045c0
...
...
@@ -28,13 +28,19 @@ static int countOpenFDs(void)
return
count
;
}
#if defined(__sun)
static
const
char
libXext_so
[]
=
"libXext.so.0"
;
#else
static
const
char
libXext_so
[]
=
"libXext.so.6"
;
#endif
int
main
(
void
)
{
// Work around a bug in libXext: dlclosing it after it has registered the
// Generic Event Extension causes an identical bug to the one this program
// is trying to test for.
int
nOpenFDs
=
countOpenFDs
();
void
*
libXext
=
dlopen
(
"
libXext
.
so
.6"
,
RTLD_LAZY
);
void
*
libXext
=
dlopen
(
libXext
_
so
,
RTLD_LAZY
);
void
*
libvdpau
=
dlopen
(
"src/libvdpau.so"
,
RTLD_LAZY
);
Display
*
dpy
=
XOpenDisplay
(
NULL
);
VdpDeviceCreateX11
*
pvdp_device_create_x11
;
...
...
@@ -43,7 +49,7 @@ int main(void)
VdpStatus
status
;
if
(
!
libXext
)
{
fprintf
(
stderr
,
"Failed to open libXext
.
so
.6: %s"
,
dlerror
());
fprintf
(
stderr
,
"Failed to open
%s: %s"
,
libXext
_
so
,
dlerror
());
return
SKIP
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment