chiark / gitweb /
Make sure that the bits testcase gets its test vector from the source
authormdw <mdw>
Sat, 14 Oct 2000 16:46:44 +0000 (16:46 +0000)
committermdw <mdw>
Sat, 14 Oct 2000 16:46:44 +0000 (16:46 +0000)
directory.

Makefile.am
bits.c

index fdd39550365c4123fba3c52d94d0391c2019ca8b..4a2a0185434043ca553736b6196b6aaf31335f65 100644 (file)
@@ -1,6 +1,6 @@
 ## -*-Makefile-*-
 ##
-## $Id: Makefile.am,v 1.25 2000/10/08 11:20:57 mdw Exp $
+## $Id: Makefile.am,v 1.26 2000/10/14 16:46:44 mdw Exp $
 ##
 ## Building the distribution
 ##
 ##----- Revision history ----------------------------------------------------
 ##
 ## $Log: Makefile.am,v $
+## Revision 1.26  2000/10/14 16:46:44  mdw
+## Make sure that the bits testcase gets its test vector from the source
+## directory.
+##
 ## Revision 1.25  2000/10/08 11:20:57  mdw
 ## Clean some more files.
 ##
@@ -161,6 +165,8 @@ sym-test.test: sym-test sym-test.in sym-test.ref
 bits_t_SOURCES = bits.c
 bits_t_LDADD = libmLib.la
 bits_t_LDFLAGS = -static
+bits.o: bits.c
+       $(COMPILE) -c -DSRCDIR=\"$(srcdir)\" $(srcdir)/bits.c -o bits.o
 bits-test: bits.t
        ./bits.t -f $(srcdir)/bits.test
 
diff --git a/bits.c b/bits.c
index 7ecebe6d747f187872513ca3eea6c23a4ea2383b..f3d773236faad8bee4ffabd04e54eb35f1e1958a 100644 (file)
--- a/bits.c
+++ b/bits.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: bits.c,v 1.1 2000/07/16 12:28:00 mdw Exp $
+ * $Id: bits.c,v 1.2 2000/10/14 16:46:44 mdw Exp $
  *
  * Test rig for bits header
  *
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: bits.c,v $
+ * Revision 1.2  2000/10/14 16:46:44  mdw
+ * Make sure that the bits testcase gets its test vector from the source
+ * directory.
+ *
  * Revision 1.1  2000/07/16 12:28:00  mdw
  * Test equipment for the 64-bit arithmetic in `bits.h'.
  *
@@ -105,7 +109,7 @@ static test_chunk tests[] = {
 
 int main(int argc, char *argv[])
 {
-  test_run(argc, argv, tests, "bits.test");
+  test_run(argc, argv, tests, SRCDIR "/bits.test");
   return (0);
 }