Removing the bluetooth tests on W32
authorClaudiu Olteanu <claudiu@140774ce-b5e7-0310-ab8b-a85725594a96>
Thu, 19 Sep 2013 13:09:18 +0000 (13:09 +0000)
committerClaudiu Olteanu <claudiu@140774ce-b5e7-0310-ab8b-a85725594a96>
Thu, 19 Sep 2013 13:09:18 +0000 (13:09 +0000)
src/transport/Makefile.am
src/transport/gnunet-helper-transport-bluetooth.c

index 9e257f0680e777d62545339ed6e792b9f329940b..71a54d83f538bd4a08e33e8ce55ad7c92bf31ff9 100644 (file)
@@ -82,11 +82,6 @@ if MINGW
  BT_BIN = gnunet-helper-transport-bluetooth
  BT_PLUGIN_LA = libgnunet_plugin_transport_bluetooth.la
  BT_PLUGIN_TEST = test_plugin_bluetooth
- BT_API_TEST = test_transport_api_bluetooth
- BT_REL_TEST = test_transport_api_reliability_bluetooth
- BT_UREL_TEST = test_transport_api_unreliability_bluetooth
- BT_QUOTA_TEST = test_quota_compliance_bluetooth \
-    test_quota_compliance_bluetooth_asymmetric
 endif
 endif
 
index f07fd23aa7c0a4a9204e290d93c27ccfbaa58303..457b77cfe015a505f4bd8abf5c6781e263f11e0c 100644 (file)
     UINT8 mac[MAC_ADDR_SIZE];
   };
 
-  // {31191E56-FA7E-4517-870E-71B86BBCC52F}
+  /** 
+   * The UUID used for the SDP service.
+   * {31191E56-FA7E-4517-870E-71B86BBCC52F}
+   */
   #define GNUNET_BLUETOOTH_SDP_UUID \
     { \
       0x31, 0x19, 0x1E, 0x56, \
@@ -614,12 +617,12 @@ check_crc_buf_osdep (const unsigned char *buf, size_t len)
   print_last_error()
   {
     LPVOID lpMsgBuf = NULL;
-    FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
-                    NULL, GetLastError(), 0, (LPTSTR) &lpMsgBuf, 0, NULL);
-    fprintf (stderr, "%s\n", (char *)lpMsgBuf) ;
-    //FIXME : it crashes
-    // if (lpMsgBuf)
-    //   free (lpMsgBuf);
+
+    if (FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
+                    NULL, GetLastError(), 0, (LPTSTR) &lpMsgBuf, 0, NULL))
+      fprintf (stderr, "%s\n", (char *)lpMsgBuf);
+    else
+      fprintf (stderr, "Failed to format the message for the last error! Error number : %d\n", GetLastError());
   }
 
   /**