From b01aec9f631409027c706c95a798f56d41b28c5c Mon Sep 17 00:00:00 2001
From: open-license-manager <rillf@maildrop.cc>
Date: 周二, 22 7月 2014 14:51:57 +0800
Subject: [PATCH] tests

---
 src/library/base/EventRegistry.cpp  |    1 +
 test/library/LicenseReader_test.cpp |    6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/library/base/EventRegistry.cpp b/src/library/base/EventRegistry.cpp
index 8650b96..12a7ab2 100644
--- a/src/library/base/EventRegistry.cpp
+++ b/src/library/base/EventRegistry.cpp
@@ -79,6 +79,7 @@
 void EventRegistry::addError(EVENT_TYPE event) {
 	addEvent(event, SEVERITY_ERROR);
 }
+
 void EventRegistry::addEvent(EVENT_TYPE event, SEVERITY severity) {
 	AuditEvent audit;
 	audit.severity = severity;
diff --git a/test/library/LicenseReader_test.cpp b/test/library/LicenseReader_test.cpp
index f4dcfca..e803ef7 100644
--- a/test/library/LicenseReader_test.cpp
+++ b/test/library/LicenseReader_test.cpp
@@ -10,7 +10,7 @@
 
 BOOST_AUTO_TEST_CASE( read_single_file ) {
 	const char * licLocation =
-			PROJECT_TEST_SRC_DIR "/library/reader/test_reader.ini";
+			PROJECT_TEST_SRC_DIR "/library/test_reader.ini";
 	const LicenseLocation location = { licLocation, NULL, false };
 	LicenseReader licenseReader(location);
 	vector<FullLicenseInfo> licenseInfos;
@@ -22,7 +22,7 @@
 
 BOOST_AUTO_TEST_CASE( product_not_licensed ) {
 	const char * licLocation =
-			PROJECT_TEST_SRC_DIR "/library/reader/test_reader.ini";
+			PROJECT_TEST_SRC_DIR "/library/test_reader.ini";
 	const LicenseLocation location = { licLocation, NULL, false };
 	LicenseReader licenseReader(location);
 	vector<FullLicenseInfo> licenseInfos;
@@ -37,7 +37,7 @@
 
 BOOST_AUTO_TEST_CASE( file_not_found ) {
 	const char * licLocation =
-			PROJECT_TEST_SRC_DIR "/library/reader/not_found.ini";
+			PROJECT_TEST_SRC_DIR "/library/not_found.ini";
 	//const char * envName = "MYVAR";
 	const LicenseLocation location = { licLocation, NULL, false };
 	LicenseReader licenseReader(location);

--
Gitblit v1.9.1