Skip to contentSkip to conversation

reactivate attribute mapping unit test

PATCH New Joshua Brindle 1 participant 1 message Mar 24, 2010 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 reactivate attribute mapping unit test

This test must have been disabled a very long time ago, before attributes were present in the kernel policy. Since the attributes are now present this unit test should be turned back on, unless I'm missing something pretty major (it looks reasonable and is successful when run).

---
 libsepol/tests/test-expander.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
libsepol/tests/test-expander.c +2 -4
index 8294308..ded1d9d 100644
@@ -196,14 +196,12 @@ int expander_add_tests(CU_pSuite suite)
 		CU_cleanup_registry();
 		return CU_get_error();
 	}
-#if 0
-	/* this is a very useful test and in fact has caught some bugs but cannot be used
-	 * currently because of the way the expander removes attributes, please FIXME :) */
+
 	if (NULL == CU_add_test(suite, "expander_attr_mapping", test_expander_attr_mapping)) {
 		CU_cleanup_registry();
 		return CU_get_error();
 	}
-#endif
+
 	if (NULL == CU_add_test(suite, "expander_role_mapping", test_expander_role_mapping)) {
 		CU_cleanup_registry();
 		return CU_get_error();
Signature · 7 lines
1.7.0.1


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.