diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-11-18 14:11:09 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-11-18 14:11:09 +0100 |
commit | 8adfb0eeffd1888f9b53b8d8677eb1656cd20e47 (patch) | |
tree | 1b5cabdb49792cbee8839fee6d907b5d9513a4b0 /support/tst-xreadlink.c | |
parent | df0c40ee3a893238ac11f4c0d876a0c3b49d198d (diff) | |
download | glibc-8adfb0eeffd1888f9b53b8d8677eb1656cd20e47.tar glibc-8adfb0eeffd1888f9b53b8d8677eb1656cd20e47.tar.gz glibc-8adfb0eeffd1888f9b53b8d8677eb1656cd20e47.tar.bz2 glibc-8adfb0eeffd1888f9b53b8d8677eb1656cd20e47.zip |
support_create_temp_directory: Align behavior with create_temp_file
create_temp_file automatically supplies the test directory and the
XXXXXX suffix. support_create_temp_directory required the caller to
specify them, which was confusing.
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to 'support/tst-xreadlink.c')
-rw-r--r-- | support/tst-xreadlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/tst-xreadlink.c b/support/tst-xreadlink.c index cb2c12a888..a4a22812c1 100644 --- a/support/tst-xreadlink.c +++ b/support/tst-xreadlink.c @@ -29,7 +29,7 @@ static int do_test (void) { - char *dir = support_create_temp_directory ("/tmp/tst-xreadlink-XXXXXX"); + char *dir = support_create_temp_directory ("tst-xreadlink-"); char *symlink_name = xasprintf ("%s/symlink", dir); add_temp_file (symlink_name); |