2a20da0
From 99df255485ea60bd32e8fffc012348d1046693b2 Mon Sep 17 00:00:00 2001
9ce824b
From: Robbie Harwood <rharwood@redhat.com>
9ce824b
Date: Wed, 1 Mar 2017 17:46:22 -0500
9ce824b
Subject: [PATCH] Use GSSAPI fallback skiptest
9ce824b
9ce824b
Also-authored-by: Matt Rogers <mrogers@redhat.com>
9ce824b
[rharwood@redhat.com: Adjusted patch to apply]
9ce824b
---
9ce824b
 src/appl/gss-sample/Makefile.in | 6 +++++-
9ce824b
 1 file changed, 5 insertions(+), 1 deletion(-)
9ce824b
9ce824b
diff --git a/src/appl/gss-sample/Makefile.in b/src/appl/gss-sample/Makefile.in
9ce824b
index 28e59f90f..9806fd327 100644
9ce824b
--- a/src/appl/gss-sample/Makefile.in
9ce824b
+++ b/src/appl/gss-sample/Makefile.in
9ce824b
@@ -6,6 +6,8 @@ SRCS= $(srcdir)/gss-client.c $(srcdir)/gss-misc.c $(srcdir)/gss-server.c
9ce824b
 
9ce824b
 OBJS= gss-client.o gss-misc.o gss-server.o
9ce824b
 
9ce824b
+LBITS = $(shell /usr/bin/getconf LONG_BIT)
9ce824b
+
9ce824b
 all-unix: gss-server gss-client
9ce824b
 
9ce824b
 ##WIN32##VERSIONRC = $(BUILDTOP)\windows\version.rc
9ce824b
@@ -43,7 +45,9 @@ clean-unix::
9ce824b
 	$(RM) gss-server gss-client
9ce824b
 
9ce824b
 check-pytests:
9ce824b
-	$(RUNPYTEST) $(srcdir)/t_gss_sample.py $(PYTESTFLAGS)
9ce824b
+	if ! [ $(LBITS) -eq 32 ]; then \
9ce824b
+		$(RUNPYTEST) $(srcdir)/t_gss_sample.py $(PYTESTFLAGS); \
9ce824b
+	fi
9ce824b
 
9ce824b
 install-unix:
9ce824b
 	$(INSTALL_PROGRAM) gss-client $(DESTDIR)$(CLIENT_BINDIR)/gss-client