This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[obv] testsuite: Fix gdb.cp/infcall-dlopen.cc FAIL on gcc-4.1


Hi,

there was a false FAIL on RHEL/CentOS-5 (gcc-4.1):
	Running ./gdb.cp/infcall-dlopen.exp ...
	FAIL: gdb.cp/infcall-dlopen.exp: test 0
	FAIL: gdb.cp/infcall-dlopen.exp: test 0 stub 1 (got interactive prompt)

Tested on x86_64-fedora14snapshot-linux-gnu.

Checked-in.


Thanks,
Jan


http://sourceware.org/ml/gdb-cvs/2010-10/msg00070.html

--- src/gdb/testsuite/ChangeLog	2010/10/11 08:47:47	1.2473
+++ src/gdb/testsuite/ChangeLog	2010/10/11 21:36:25	1.2474
@@ -1,5 +1,10 @@
 2010-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
+	* gdb.cp/infcall-dlopen.cc (openlib): Support NULL FILENAME.
+	(main): Make openlib dummy call.
+
+2010-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
 	Fix missing _start PIE relocation on ppc64 due to stop on dl_main.
 	* break-interp.exp (reach): Move the core body ...
 	(reach_1): ... here.  Use stop-on-solib-events for _dl_debug_state.
--- src/gdb/testsuite/gdb.cp/infcall-dlopen.cc	2010/08/17 21:31:13	1.1
+++ src/gdb/testsuite/gdb.cp/infcall-dlopen.cc	2010/10/11 21:36:26	1.2
@@ -23,6 +23,9 @@
 {
   void *h = dlopen (filename, RTLD_LAZY);
 
+  if (filename == NULL)
+    return 0;
+
   if (h == NULL)
     return 0;
   if (dlclose (h) != 0)
@@ -33,5 +36,8 @@
 int
 main (void)
 {
+  /* Dummy call to get the function always compiled in.  */
+  openlib (NULL);
+
   return 0;
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]