49f904
Index: /trunk/src/test/thread_test.c
49f904
===================================================================
49f904
--- /trunk/src/test/thread_test.c	(revision 80)
49f904
+++ /trunk/src/test/thread_test.c	(revision 81)
49f904
@@ -46,4 +46,10 @@
49f904
 int main(void)
49f904
 {
49f904
+	// This test must be run as root which naturally has all capabilities
49f904
+	// set. So, we need to clear the capabilities so that we can see if
49f904
+	// the test works.
49f904
+	capng_clear(CAPNG_SELECT_CAPS);
49f904
+	capng_apply(CAPNG_SELECT_CAPS);
49f904
+
49f904
 	printf("Testing thread separation of capabilities\n");
49f904
 	pthread_create(&thread1, NULL, thread1_main, NULL);