mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 00:56:31 +08:00
fix test
This commit is contained in:
1 parent
1d7928fc42
commit
c06f1b58a2
1 file changed
+5
-5
@@ -31,7 +31,7 @@
|
||||
|
||||
namespace plasma {
|
||||
|
||||
std::string g_test_executable; // NOLINT
|
||||
std::string test_executable; // NOLINT
|
||||
|
||||
class TestPlasmaStore : public ::testing::Test {
|
||||
public:
|
||||
@@ -39,7 +39,7 @@ class TestPlasmaStore : public ::testing::Test {
|
||||
// stdout of the object store. Consider changing that.
|
||||
void SetUp() {
|
||||
std::string plasma_directory =
|
||||
g_test_executable.substr(0, g_test_executable.find_last_of("/"));
|
||||
test_executable.substr(0, test_executable.find_last_of("/"));
|
||||
std::string plasma_command =
|
||||
plasma_directory +
|
||||
"/plasma_store -m 1000000000 -s /tmp/store 1> /dev/null 2> /dev/null &";
|
||||
@@ -127,10 +127,10 @@ TEST_F(TestPlasmaStore, MultipleGetTest) {
|
||||
ASSERT_EQ(object_buffer[1].data[0], 2);
|
||||
}
|
||||
|
||||
} // namespace plasma
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
g_test_executable = std::string(argv[0]);
|
||||
plasma::test_executable = std::string(argv[0]);
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
|
||||
} // namespace plasma
|
||||
Reference in new issue
Block a user