socsvn commit: r269794 - in soc2014/op/tests/smap-tester: kmod smap-test

op at FreeBSD.org op at FreeBSD.org
Fri Jun 20 11:30:43 UTC 2014


Author: op
Date: Fri Jun 20 11:30:42 2014
New Revision: 269794
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=269794

Log:
  updated SMAP test, the SMAP functionality is done in kernel side, so we can test it
  
  Signed-off-by: Oliver Pinter <oliver.pntr at gmail.com>
  
  

Modified:
  soc2014/op/tests/smap-tester/kmod/smap-tester-vuln-kld.c
  soc2014/op/tests/smap-tester/smap-test/smap-test.c

Modified: soc2014/op/tests/smap-tester/kmod/smap-tester-vuln-kld.c
==============================================================================
--- soc2014/op/tests/smap-tester/kmod/smap-tester-vuln-kld.c	Fri Jun 20 10:38:08 2014	(r269793)
+++ soc2014/op/tests/smap-tester/kmod/smap-tester-vuln-kld.c	Fri Jun 20 11:30:42 2014	(r269794)
@@ -1,6 +1,6 @@
 #include <sys/types.h>
 #include <sys/cdefs.h>
-#include "../../../freebsd-base/sys/amd64/include/cpufunc.h" // XXXOP - hack
+#include <machine/cpufunc.h>
 #include <sys/module.h>
 #include <sys/systm.h>
 #include <sys/param.h>

Modified: soc2014/op/tests/smap-tester/smap-test/smap-test.c
==============================================================================
--- soc2014/op/tests/smap-tester/smap-test/smap-test.c	Fri Jun 20 10:38:08 2014	(r269793)
+++ soc2014/op/tests/smap-tester/smap-test/smap-test.c	Fri Jun 20 11:30:42 2014	(r269794)
@@ -25,14 +25,14 @@
 	test_allow();
 
 	test_0();
-#if 0
 	test_allowed_read();
 	test_allowed_write();
 	test_destroy();
 
 	test_prepare();
+	test_allow();
+
 	test_0();
-#endif
 	test_not_allowed_read();
 	test_not_allowed_write();
 


More information about the svn-soc-all mailing list