Removes the sizes-test.They were bogus as they were checking the sizeof(long)
authorEzra Peisach <epeisach@mit.edu>
Fri, 4 Oct 1996 12:34:02 +0000 (12:34 +0000)
committerEzra Peisach <epeisach@mit.edu>
Fri, 4 Oct 1996 12:34:02 +0000 (12:34 +0000)
and comparing them to known "4" byte quantities in krb5.h. This fails
on 64 bit architectures.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9141 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kadm5/unit-test/ChangeLog
src/lib/kadm5/unit-test/Makefile.in
src/lib/kadm5/unit-test/sizes-test.c [deleted file]

index d8399796fb560d242079b96da9b6964b4e4170bb..611aec8bdb3b587b6ac68a31d014bd164953a0bb 100644 (file)
@@ -1,3 +1,9 @@
+Fri Oct  4 08:31:50 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * sizes-test.c: Removed program.
+
+       * Makefile.in: Remove sizes-test.
+
 Tue Oct  1 14:45:37 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
        * api.2/init-v2.exp: Remove tests 104 & 105 as lockfile and
index 915c70ebe30674249622042784d9e67f93210d6c..2e22e774c61905dba64b84e987f06d6f19696a06 100644 (file)
@@ -1,7 +1,7 @@
 CFLAGS  =      $(CCOPTS) $(DEFS) $(LOCALINCLUDE) -DUSE_KADM5_API_VERSION=1
 
 all:: init-test destroy-test client-handle-test client-iter-test
-all:: randkey-test server-handle-test lock-test server-iter-test sizes-test
+all:: randkey-test server-handle-test lock-test server-iter-test 
 
 #
 # The client-side test programs.
@@ -12,7 +12,7 @@ init-test: init-test.o client_init.o $(CLNTDEPLIPS)
                $(CLNTLIBS)
 
 client_init.o: $(SRCTOP)/lib/kadm5/clnt/client_init.c
-       $(CC) $(CFLAGS) -DUSE_KADM5_API_VERSION=2 -DINIT_TEST -c -I$(SRCTOP)/lib/kadm5 $<
+       $(CC) $(CFLAGS) -DUSE_KADM5_API_VERSION=2 -DINIT_TEST -c -I$(SRCTOP)/lib/kadm5 $(SRCTOP)/lib/kadm5/clnt/client_init.c
 
 destroy-test: destroy-test.o $(CLNTDEPLIBS)
        $(LD) $(LDFLAGS) $(LDARGS) -o destroy-test destroy-test.o $(CLNTLIBS)
@@ -42,9 +42,6 @@ lock-test: lock-test.o $(SRVDEPLIBS)
 server-iter-test: iter-test.o $(SRVDEPLIBS)
        $(LD) $(LDFLAGS) $(LDARGS) -o server-iter-test iter-test.o $(SRVLIBS)
 
-sizes-test: sizes-test.o $(SRVDEPLIBS)
-       $(LD) $(LDFLAGS) $(LDARGS) -o sizes-test sizes-test.o $(SRVLIBS)
-
 #
 # The unit-test targets
 #
@@ -72,9 +69,6 @@ test-noauth: init-test
 test-destroy: destroy-test
        $(ENV_SETUP) ./destroy-test
 
-test-sizes: sizes-test
-       $(ENV_SETUP) ./sizes-test
-
 unit-test-client-setup::
        $(ENV_SETUP) $(START_SERVERS)
 
@@ -87,7 +81,7 @@ unit-test-server-setup::
 unit-test-server-cleanup::
        $(ENV_SETUP) $(STOP_SERVERS_LOCAL)
 
-unit-test-client-body: capi.0 capi.2 site.exp test-noauth test-destroy test-handle-client test-sizes
+unit-test-client-body: capi.0 capi.2 site.exp test-noauth test-destroy test-handle-client 
        $(ENV_SETUP) $(RUNTEST) --tool capi API=$(CLNTTCL) KINIT=$(BUILDTOP)/clients/kinit/kinit KDESTROY=$(BUILDTOP)/clients/kdestroy/kdestroy KADMIN_LOCAL=$(BUILDTOP)/kadmin/cli/kadmin.local RPC=1
 
 #
@@ -123,7 +117,7 @@ sapi.2: $(srcdir)/api.2
        -rm -f $(srcdir)/sapi.2
        ln -s $(srcdir)/api.2 $(srcdir)/sapi.2
 
-unit-test-server-body: sapi.0 sapi.1 sapi.2 site.exp randkey-test test-handle-server lock-test test-sizes
+unit-test-server-body: sapi.0 sapi.1 sapi.2 site.exp randkey-test test-handle-server lock-test 
        $(ENV_SETUP) $(RUNTEST) --tool sapi API=$(SRVTCL) LOCKTEST=./lock-test KADMIN_LOCAL=$(BUILDTOP)/kadmin/cli/kadmin.local RPC=0
 
 clean::
@@ -135,5 +129,4 @@ clean::
        $(RM) server-handle-test handle-test.o
        $(RM) lock-test lock-test.o
        $(RM) server-iter-test iter-test.o
-       $(RM) sizes-test sizes-test.o
        $(RM) *.log *.plog *.sum *.psum unit-test-log.*
diff --git a/src/lib/kadm5/unit-test/sizes-test.c b/src/lib/kadm5/unit-test/sizes-test.c
deleted file mode 100644 (file)
index 5bcbd62..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-#include <stdio.h>
-#include <rpc/types.h>
-#include <krb5.h>
-
-#define stringify(a) #a
-
-#define test_size(a,b) if (sizeof(a) != sizeof(b)) { \
-  fprintf(stderr, "sizeof(%s) != sizeof(%s)\n", stringify(a), stringify(b)); \
-  exit(1); \
-}
-
-main()
-{
-  test_size(unsigned long, krb5_ui_4);
-  test_size(long, krb5_timestamp);
-  test_size(long, krb5_deltat);
-  test_size(long, krb5_flags);
-
-  exit(0);
-}
-