Skip to content

Commit

Permalink
use std::remove instead of unlink
Browse files Browse the repository at this point in the history
  • Loading branch information
vigsterkr committed Jan 25, 2017
1 parent fac9852 commit 3c0f86d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tests/unit/features/StreamingDenseFeatures_unittest.cc
Expand Up @@ -59,8 +59,7 @@ TEST(StreamingDenseFeaturesTest, example_reading_from_file)
SG_UNREF(orig_feats);
SG_UNREF(feats);

int delete_success = unlink(fname);
ASSERT_EQ(0, delete_success);
std::remove(fname);
}

TEST(StreamingDenseFeaturesTest, example_reading_from_features)
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/features/StreamingSparseFeatures_unittest.cc
Expand Up @@ -78,6 +78,5 @@ TEST(StreamingSparseFeaturesTest, parse_file)
SG_FREE(data);
SG_FREE(labels);

int delete_success = unlink(fname);
ASSERT_EQ(0, delete_success);
std::remove(fname);
}

0 comments on commit 3c0f86d

Please sign in to comment.