OSDN Git Service

gd: Fix legacy storage test config file
authorChris Manton <cmanton@google.com>
Fri, 21 Feb 2020 00:19:54 +0000 (16:19 -0800)
committerChris Manton <cmanton@google.com>
Fri, 21 Feb 2020 00:22:33 +0000 (16:22 -0800)
Should point to appropriate target-based location

Bug: 147315979
Test: bluetooth_test_gd # x86
Test: bluetooth_test_gd # arm

Change-Id: Ic021edb63d1d9b0ee7e5947c7e53e0384d34b9e2

gd/storage/legacy_test.cc

index 7a76eee..0d0c1df 100644 (file)
 
 #include <base/files/file_util.h>
 
+#ifdef OS_ANDROID
+constexpr char CONFIG_FILE[] = "/data/local/tmp/config_test.conf";
+#else
 constexpr char CONFIG_FILE[] = "/tmp/config_test.conf";
+#endif
+
 constexpr char CONFIG_FILE_CONTENT[] =
     "                                                                                \n\
 first_key=value                                                                      \n\