Skip to content

Commit a45fa80

Browse files
committed
build: drop the mktempd gnulib module
The mktempd module in gnulib provides an equivalent to 'mktemp -d' on platforms which lack this shell command. All platforms on which libvirt runs the affected tests have 'mktemp -d' support, so the gnulib module is not required. Reviewed-by: Ján Tomko <[email protected]> Signed-off-by: Daniel P. Berrangé <[email protected]>
1 parent a88cfcf commit a45fa80

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

bootstrap.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ mgetgroups
7171
mkdtemp
7272
mkostemp
7373
mkostemps
74-
mktempd
7574
net_if
7675
netdb
7776
nonblocking

tests/test-lib.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,7 @@ fi
256256
# a partition, or to undo any other global state changes.
257257
cleanup_() { :; }
258258

259-
mktempd="$abs_top_srcdir/build-aux/mktempd"
260-
t_=$("$SHELL" "$mktempd" "$test_dir_" lv-$this_test.XXXXXXXXXX) \
259+
t_=$("mktemp" "-d" "$test_dir_/lv-$this_test.XXXXXXXXXX") \
261260
|| error_ "failed to create temporary directory in $test_dir_"
262261

263262
# Run each test from within a temporary sub-directory named after the

0 commit comments

Comments
 (0)