diff options
author | Christopher Ferris <cferris@google.com> | 2013-08-16 03:13:42 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-08-16 03:13:42 +0000 |
commit | c8039337e3ee608e23f8ca6e5ea123d938b08029 (patch) | |
tree | 45b7944be266210e45a969bec88fba9774929f6f /tests | |
parent | 4eacb34132b3162cc3716edfee8bad528d84c16f (diff) | |
parent | bd6dc6a8864a1997eb8608030ac816740169c463 (diff) | |
download | bionic-c8039337e3ee608e23f8ca6e5ea123d938b08029.zip bionic-c8039337e3ee608e23f8ca6e5ea123d938b08029.tar.gz bionic-c8039337e3ee608e23f8ca6e5ea123d938b08029.tar.bz2 |
Merge "Change hard-coded temporary directory."
Diffstat (limited to 'tests')
-rw-r--r-- | tests/property_benchmark.cpp | 4 | ||||
-rw-r--r-- | tests/system_properties_test.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/property_benchmark.cpp b/tests/property_benchmark.cpp index d10be91..4311a1d 100644 --- a/tests/property_benchmark.cpp +++ b/tests/property_benchmark.cpp @@ -32,10 +32,10 @@ struct LocalPropertyTestState { LocalPropertyTestState(int nprops) : nprops(nprops), valid(false) { static const char prop_name_chars[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-_"; - char dir_template[] = "/data/nativetest/prop-XXXXXX"; + char dir_template[] = "/data/local/tmp/prop-XXXXXX"; char *dirname = mkdtemp(dir_template); if (!dirname) { - perror("making temp file for test state failed (is /data/nativetest writable?)"); + perror("making temp file for test state failed (is /data/local/tmp writable?)"); return; } diff --git a/tests/system_properties_test.cpp b/tests/system_properties_test.cpp index 9602607..ba73c68 100644 --- a/tests/system_properties_test.cpp +++ b/tests/system_properties_test.cpp @@ -28,10 +28,10 @@ extern void *__system_property_area__; struct LocalPropertyTestState { LocalPropertyTestState() : valid(false) { - char dir_template[] = "/data/nativetest/prop-XXXXXX"; + char dir_template[] = "/data/local/tmp/prop-XXXXXX"; char *dirname = mkdtemp(dir_template); if (!dirname) { - perror("making temp file for test state failed (is /data/nativetest writable?)"); + perror("making temp file for test state failed (is /data/local/tmp writable?)"); return; } |