singa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wang...@apache.org
Subject incubator-singa git commit: SINGA-222 Fixed bugs in IO
Date Sat, 09 Jul 2016 08:09:56 GMT
Repository: incubator-singa
Updated Branches:
  refs/heads/dev dbc720d03 -> 245f60e68


SINGA-222 Fixed bugs in IO

Fixed a bug in TextFileReader;
Add codes to remove some files generated by LMDB test after testing.
Change URL to travis-ci in README.md.


Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/245f60e6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/245f60e6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/245f60e6

Branch: refs/heads/dev
Commit: 245f60e68d7517e93c23d2bfb1f266e4f43930fc
Parents: dbc720d
Author: XiangruiCAI <caixr91@gmail.com>
Authored: Sat Jul 9 15:29:23 2016 +0800
Committer: XiangruiCAI <caixr91@gmail.com>
Committed: Sat Jul 9 15:29:23 2016 +0800

----------------------------------------------------------------------
 README.md                  | 2 +-
 src/io/textfile_reader.cc  | 2 +-
 test/singa/test_lmdb_rw.cc | 4 ++++
 3 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/245f60e6/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 890c161..55ec3cc 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 #Apache SINGA
 
-[![Build Status](https://travis-ci.org/undisputed-seraphim/incubator-singa.png)](https://travis-ci.org/undisputed-seraphim/incubator-singa)
+[![Build Status](https://travis-ci.org/apache/incubator-singa.png)](https://travis-ci.org/apache/incubator-singa)
 
 Distributed deep learning system
 

http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/245f60e6/src/io/textfile_reader.cc
----------------------------------------------------------------------
diff --git a/src/io/textfile_reader.cc b/src/io/textfile_reader.cc
index 714aa51..16abc9e 100644
--- a/src/io/textfile_reader.cc
+++ b/src/io/textfile_reader.cc
@@ -60,7 +60,7 @@ int TextFileReader::Count() {
 }
 
 void TextFileReader::SeekToFirst() {
-  CHECK(fdat_ != nullptr);
+  CHECK(fdat_.is_open());
   lineNo_ = 0;
   fdat_.clear();
   fdat_.seekg(0);

http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/245f60e6/test/singa/test_lmdb_rw.cc
----------------------------------------------------------------------
diff --git a/test/singa/test_lmdb_rw.cc b/test/singa/test_lmdb_rw.cc
index 0d4025a..6d7b3d0 100644
--- a/test/singa/test_lmdb_rw.cc
+++ b/test/singa/test_lmdb_rw.cc
@@ -132,5 +132,9 @@ TEST(LMDBReader, SeekToFirst) {
   EXPECT_STREQ("This is the fourth test for lmdb io.", value.c_str());
 
   reader.Close();
+
+  remove("./test_lmdb/data.mdb");
+  remove("./test_lmdb/lock.mdb");
+  remove("./test_lmdb");
 }
 #endif  // USE_LMDB


Mime
View raw message