File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ using namespace solidity::test;
31
31
namespace fs = boost::filesystem;
32
32
33
33
TemporaryDirectory::TemporaryDirectory (std::string const & _prefix):
34
- m_path(fs::temp_directory_path() / fs::unique_path(_prefix + " %%%%-%%%%-%%%%-%%%%" ))
34
+ m_path(fs::temp_directory_path() / fs::unique_path(_prefix + " - %%%%-%%%%-%%%%-%%%%" ))
35
35
{
36
36
// Prefix should just be a file name and not contain anything that would make us step out of /tmp.
37
37
assert (fs::path (_prefix) == fs::path (_prefix).stem ());
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ namespace solidity::test
40
40
class TemporaryDirectory
41
41
{
42
42
public:
43
- TemporaryDirectory (std::string const & _prefix = " solidity-test- " );
43
+ TemporaryDirectory (std::string const & _prefix = " solidity-test" );
44
44
~TemporaryDirectory ();
45
45
46
46
boost::filesystem::path const & path () const { return m_path; }
Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ BOOST_AUTO_TEST_CASE(TemporaryDirectory_should_create_and_delete_a_unique_and_em
37
37
{
38
38
fs::path dirPath;
39
39
{
40
- TemporaryDirectory tempDir (" temporary-directory-test- " );
40
+ TemporaryDirectory tempDir (" temporary-directory-test" );
41
41
dirPath = tempDir.path ();
42
42
43
- BOOST_TEST (dirPath.stem ().string ().find (" temporary-directory-test- " ) == 0 );
43
+ BOOST_TEST (dirPath.stem ().string ().find (" temporary-directory-test" ) == 0 );
44
44
BOOST_TEST (fs::equivalent (dirPath.parent_path (), fs::temp_directory_path ()));
45
45
BOOST_TEST (fs::is_directory (dirPath));
46
46
BOOST_TEST (fs::is_empty (dirPath));
@@ -52,7 +52,7 @@ BOOST_AUTO_TEST_CASE(TemporaryDirectory_should_delete_its_directory_even_if_not_
52
52
{
53
53
fs::path dirPath;
54
54
{
55
- TemporaryDirectory tempDir (" temporary-directory-test- " );
55
+ TemporaryDirectory tempDir (" temporary-directory-test" );
56
56
dirPath = tempDir.path ();
57
57
58
58
BOOST_TEST (fs::is_directory (dirPath));
@@ -73,7 +73,7 @@ BOOST_AUTO_TEST_CASE(TemporaryWorkingDirectory_should_change_and_restore_working
73
73
try
74
74
{
75
75
{
76
- TemporaryDirectory tempDir (" temporary-directory-test- " );
76
+ TemporaryDirectory tempDir (" temporary-directory-test" );
77
77
assert (fs::equivalent (fs::current_path (), originalWorkingDirectory));
78
78
assert (!fs::equivalent (tempDir.path (), originalWorkingDirectory));
79
79
You can’t perform that action at this time.
0 commit comments