|
From: <mad...@us...> - 2008-01-21 15:42:50
|
Revision: 2731
http://selinux.svn.sourceforge.net/selinux/?rev=2731&view=rev
Author: madmethod
Date: 2008-01-21 07:42:48 -0800 (Mon, 21 Jan 2008)
Log Message:
-----------
remove policydb generate calls mistakenly checked in
Modified Paths:
--------------
branches/policyrep/libpolicyrep/tests/libpolicyrep-test.cpp
Modified: branches/policyrep/libpolicyrep/tests/libpolicyrep-test.cpp
===================================================================
--- branches/policyrep/libpolicyrep/tests/libpolicyrep-test.cpp 2008-01-09 17:10:44 UTC (rev 2730)
+++ branches/policyrep/libpolicyrep/tests/libpolicyrep-test.cpp 2008-01-21 15:42:48 UTC (rev 2731)
@@ -20,7 +20,6 @@
#include <policyrep/policy.hpp>
#include <policyrep/parse.hpp>
-#include <policyrep/generate.hpp>
#include <sstream>
#include <iostream>
@@ -38,12 +37,12 @@
t->aliases().insert("bar"); // duplicate - will be ingored
t->attributes().insert("domain");
t->attributes().insert("userdomain");
-
+
mod->append_child(t);
RolePtr r(new Role("foo"));
r->types().insert("foo");
- mod->append_child(r);
+ mod->append_child(r);
UserPtr u(new User("bang"));
u->roles().insert("bust");
@@ -53,7 +52,7 @@
sen->aliases().insert("whiskey");
sen->aliases().insert("tango");
mod->append_child(sen);
-
+
CategoryPtr cat(new Category("c1"));
cat->aliases().insert("alpha");
cat->aliases().insert("delta");
@@ -65,7 +64,7 @@
std::cout << "============ basic test ============" << std::endl;
output_tree(std::cout, pol);
-
+
std::stringstream s;
output_tree(s, pol);
std::cout << s.str() << std::endl;
@@ -80,10 +79,6 @@
parsed_mod->append_children(mod->children().begin(), mod->children().end());
-
- Policydb *poldb = new Policydb();
- poldb->generate(pol);
-
}
int main(int argc, char **argv)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|