Date: Tuesday, April 17, 2007 @ 12:26:15
  Author: marc
    Path: /cvsroot/carob/libmysequoia/ldtest

Modified: main.cpp (1.9 -> 1.10) runtest.sh (1.9 -> 1.10)

Tracing dlclose() call. Trying to make output more readable.


------------+
 main.cpp   |   10 +++++-----
 runtest.sh |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)


Index: libmysequoia/ldtest/main.cpp
diff -u libmysequoia/ldtest/main.cpp:1.9 libmysequoia/ldtest/main.cpp:1.10
--- libmysequoia/ldtest/main.cpp:1.9    Tue Apr 17 12:11:06 2007
+++ libmysequoia/ldtest/main.cpp        Tue Apr 17 12:26:15 2007
@@ -45,21 +45,19 @@
     RTLD_NOW |
     (global? RTLD_GLOBAL : RTLD_LOCAL);
 
-  std::cout << std::endl << "dlopen(./plugin.so, ";
+  std::cout << std::endl << "dlopen(plugin.so, ";
 #ifdef RTLD_DEEPBIND
   std::cout << "RTLD_DEEPBIND=" << deepbind << ", " ;
 #endif
   std::cout << "RTLD_GLOBAL=" << global << ") starting... ";
 
   void *plugin = dlopen("./plugin.so", flags);
-
-  std::cout << "...completed." << std::endl;
-
-  if (!plugin) {
+   if (!plugin) {
     std::cerr << "failed to open plugin: " << dlerror() << std::endl;
     exit (1);
   }
 
+  std::cout << "...completed." << std::endl;
 
 
   std::cout << "             ";
@@ -83,7 +81,9 @@
   
   std::cout << std::endl;
 
+  std::cout << "dlclose(plugin.so) starting... ";
   dlclose(plugin);
+  std::cout << "...completed " << std::endl;
 
   return 0;
 }
Index: libmysequoia/ldtest/runtest.sh
diff -u libmysequoia/ldtest/runtest.sh:1.9 libmysequoia/ldtest/runtest.sh:1.10
--- libmysequoia/ldtest/runtest.sh:1.9  Tue Apr 17 12:11:06 2007
+++ libmysequoia/ldtest/runtest.sh      Tue Apr 17 12:26:15 2007
@@ -25,7 +25,7 @@
     printf "\n         %s" "liboverride.so $overridelinkflags        "
     printf "LD_PRELOAD=$preload\n"
     LD_LIBRARY_PATH=. LD_PRELOAD=${preload} ./main
-    printf "\n\n"
+    printf "\n"
 
 done
 done

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to