[hipl-commit] [trunk] Rev 4353: Only compile test/sqliteteststub.c if agent is enabled.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 20 Apr 2010 13:57:52 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 20/04/2010 at 13:57:52
Revision: 4353
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Only compile test/sqliteteststub.c if agent is enabled.
  Also remove the related #ifdeffery from the file.

Modified:
  M  Makefile.am
  M  test/sqliteteststub.c

=== modified file 'Makefile.am'
--- Makefile.am 2010-04-20 10:23:34 +0000
+++ Makefile.am 2010-04-20 10:57:12 +0000
@@ -31,8 +31,11 @@
                test/hashtest            \
                test/hc_performance      \
                test/keygentest          \
-               test/listtest            \
-               test/sqliteteststub
+               test/listtest
+
+if HIP_AGENT
+bin_PROGRAMS += test/sqliteteststub
+endif
 
 if HIP_DHT
 bin_PROGRAMS += test/dhtteststub

=== modified file 'test/sqliteteststub.c'
--- test/sqliteteststub.c       2010-03-19 09:00:54 +0000
+++ test/sqliteteststub.c       2010-04-20 10:57:12 +0000
@@ -13,9 +13,6 @@
  *
  */
 
-#include "config.h"
-#ifdef CONFIG_HIP_AGENT
-
 #include "lib/core/prefix.h"
 #include "lib/core/sqlitedbapi.h"
 
@@ -63,16 +60,3 @@
 out_err:
     return err;
 }
-
-#else
-
-#include <stdio.h>
-
-
-int main(int argc, char *argv[])
-{
-    printf("You need to configure HIP with agent support\n");
-    return -1;
-}
-
-#endif /* sqlitedbapi.h */

Other related posts:

  • » [hipl-commit] [trunk] Rev 4353: Only compile test/sqliteteststub.c if agent is enabled. - Diego Biurrun