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 62fcbbe commit b97908d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/unit/features/StreamingDenseFeatures_unittest.cc
Expand Up @@ -59,7 +59,7 @@ TEST(StreamingDenseFeaturesTest, example_reading_from_file)
SG_UNREF(orig_feats);
SG_UNREF(feats);

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

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

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

0 comments on commit b97908d

Please sign in to comment.