Skip to content

Commit f7f7901

Browse files
author
svorenova
committed
Pulling out a utility function to a separate file cont.
1 parent 34d1b48 commit f7f7901

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

unit/testing-utils/run_test_with_compilers.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
#include "run_test_with_compilers.h"
1010

1111
void run_test_with_compilers(
12-
const std::function<void(std::string)> &test_with_compiler)
12+
const std::function<void(const std::string &)> &test_with_compiler)
1313
{
14-
test_with_compiler("openjdk_8");
15-
test_with_compiler("eclipse");
16-
test_with_compiler("oracle_8");
17-
test_with_compiler("oracle_9");
14+
test_with_compiler(std::string("openjdk_8"));
15+
test_with_compiler(std::string("eclipse"));
16+
test_with_compiler(std::string("oracle_8"));
17+
test_with_compiler(std::string("oracle_9"));
1818
}

unit/testing-utils/run_test_with_compilers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
#include <functional>
1616

1717
void run_test_with_compilers(
18-
const std::function<void(std::string)> &test_with_compiler);
18+
const std::function<void(const std::string &)> &test_with_compiler);
1919

2020
#endif // CPROVER_TESTING_UTILS_RUN_TEST_WITH_COMPILERS_H

0 commit comments

Comments
 (0)