diff options
author | Kurt Miller <kurt@cvs.openbsd.org> | 2005-11-09 16:36:07 +0000 |
---|---|---|
committer | Kurt Miller <kurt@cvs.openbsd.org> | 2005-11-09 16:36:07 +0000 |
commit | c55ef26cb97b7ece8611850357d258f19147f0f4 (patch) | |
tree | 90211fd4d98100d96a9f69a9dc16a8d0ed45fbc3 /regress/libexec | |
parent | c766b6fa1ffc29d63f48bb824effb7a9f5ac27f7 (diff) |
fix regress that assumed dlopen(0,...) returned handle to exe.
Diffstat (limited to 'regress/libexec')
-rw-r--r-- | regress/libexec/ld.so/dlsym/test2/prog3/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/libexec/ld.so/dlsym/test2/prog3/main.c b/regress/libexec/ld.so/dlsym/test2/prog3/main.c index 6c1e50f4310..2c75383a0d1 100644 --- a/regress/libexec/ld.so/dlsym/test2/prog3/main.c +++ b/regress/libexec/ld.so/dlsym/test2/prog3/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.2 2005/09/16 23:30:26 kurt Exp $ */ +/* $OpenBSD: main.c,v 1.3 2005/11/09 16:36:06 kurt Exp $ */ /* * Copyright (c) 2005 Kurt Miller <kurt@openbsd.org> @@ -62,9 +62,9 @@ main() ret = 1; } - /* exe handle should *not* see bbSymbol (different load group) */ - if (dlsym(exe_handle, "bbSymbol") != NULL) { - printf("dlsym(exe_handle, \"bbSymbol\") != NULL\n"); + /* exe handle should see bbSymbol (Same as RTLD_DEFAULT) */ + if (dlsym(exe_handle, "bbSymbol") == NULL) { + printf("dlsym(exe_handle, \"bbSymbol\") == NULL\n"); ret = 1; } |