Skip to content

Commit f2c2c9d

Browse files
authored
Merge pull request #196 from SGSSGene/fix/macos-md5sum
[patch, test] md5 generates a different output to md5sum
2 parents 8115bde + dbc4d87 commit f2c2c9d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/cli/index_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ struct index_test : public cli_test
1111
{
1212
if (std::system("echo foo | md5sum > /dev/null 2>&1") == 0)
1313
md5_cmd = "md5sum";
14-
else if (std::system("echo foo | md5 > /dev/null 2>&1") == 0)
15-
md5_cmd = "md5";
14+
else if (std::system("echo foo | md5 -r > /dev/null 2>&1") == 0)
15+
md5_cmd = "md5 -r";
1616

1717
ASSERT_FALSE(md5_cmd.empty());
1818
}

test/cli/search_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ struct search_test : public cli_test
1111
{
1212
if (std::system("echo foo | md5sum > /dev/null 2>&1") == 0)
1313
md5_cmd = "md5sum";
14-
else if (std::system("echo foo | md5 > /dev/null 2>&1") == 0)
15-
md5_cmd = "md5";
14+
else if (std::system("echo foo | md5 -r > /dev/null 2>&1") == 0)
15+
md5_cmd = "md5 -r";
1616

1717
ASSERT_FALSE(md5_cmd.empty());
1818
}

0 commit comments

Comments
 (0)