]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test_librbd: don't include a .cc file
authorJosh Durgin <josh.durgin@inktank.com>
Sun, 3 Jun 2012 10:26:47 +0000 (03:26 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Fri, 8 Jun 2012 21:31:49 +0000 (14:31 -0700)
Add it as a source like the rest of the gtests.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/Makefile.am
src/test/test_librbd.cc

index 784098ebd2658cd1261f62c34e828e62e2263459..74df14d741dd7b784b97f3a3554ecbb6dd6e91c5 100644 (file)
@@ -691,7 +691,7 @@ unittest_ipaddr_LDADD = ${UNITTEST_LDADD} $(LIBGLOBAL_LDA)
 unittest_ipaddr_CXXFLAGS = ${AM_CXXFLAGS} ${UNITTEST_CXXFLAGS}
 check_PROGRAMS += unittest_ipaddr
 
-test_librbd_SOURCES = test/test_librbd.cc
+test_librbd_SOURCES = test/test_librbd.cc test/rados-api/test.cc
 test_librbd_LDADD =  librbd.la librados.la ${UNITTEST_STATIC_LDADD}
 test_librbd_CXXFLAGS = ${AM_CXXFLAGS} ${UNITTEST_CXXFLAGS}
 bin_DEBUGPROGRAMS += test_librbd
index 89c5797de5edb99ccf3484e79e62feb5cd7bf35e..1bf7ed090f258ab0b6ceaccb8d1b115e684e1913 100644 (file)
@@ -29,7 +29,7 @@
 #include <iostream>
 #include <algorithm>
 
-#include "rados-api/test.cc"
+#include "rados-api/test.h"
 #include "common/errno.h"
 
 using namespace std;