Whamcloud - gitweb
LU-8981 test: sanity 311 check is too strict
[fs/lustre-release.git] / lustre / tests / it_test.c
index d0a4168..0a4f099 100644 (file)
  *
  * You should have received a copy of the GNU General Public License
  * version 2 along with this program; If not, see
- * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
+ * http://www.gnu.org/licenses/gpl-2.0.html
  *
  * GPL HEADER END
  */
@@ -37,6 +33,8 @@
  *
  * Author: jay <jxiong@clusterfs.com>
  */
+#include <assert.h>
+#include <errno.h>
 #include <inttypes.h>
 #include <limits.h>
 #include <stdio.h>
 
 #include <linux/types.h>
 
+/*
+ * it_test.c is built against one of the lustre kernel
+ * files (interval_tree.c). This pulls in kernel specific
+ * definitions which are not of interest for user land.
+ */
 #define EXPORT_SYMBOL(s)
+#define LASSERT assert
 
 #include <../ldlm/interval_tree.c>