Commit dc56b69a authored by User expired's avatar User expired
Browse files

Have mktemp templates always end on XXX

Some versions of mktemp do not support differing filename suffixes.
parent 0672d6ac
......@@ -47,7 +47,8 @@ EOF
# Initially create temporary files for all tests.
oneTimeSetUp() {
fileOne=$(mktemp -t tmp.XXXXXX.bib)
fileOne=$(mktemp -u -t tmp.XXXXXX).bib
touch $fileOne
}
# Finally remove temporary files for all tests.
......
......@@ -67,9 +67,10 @@ writeFileThree() { # Completely formatted file.
# Initially create temporary files for all tests.
oneTimeSetUp() {
fileOne=$(mktemp -t tmp.XXXXXX.bib)
fileTwo=$(mktemp -t tmp.XXXXXX.bib)
fileThree=$(mktemp -t tmp.XXXXXX.bib)
fileOne=$(mktemp -u -t tmp.XXXXXX).bib
fileTwo=$(mktemp -u -t tmp.XXXXXX).bib
fileThree=$(mktemp -u -t tmp.XXXXXX).bib
touch $fileOne $fileTwo $fileThree
}
# Finally remove temporary files for all tests.
......
......@@ -35,8 +35,9 @@ Czako2009b:jcp'
# Initially create temporary files for all tests.
oneTimeSetUp() {
fileOne=$(mktemp -t tmp.XXXXXX.bib)
fileTwo=$(mktemp -t tmp.XXXXXX.bib)
fileOne=$(mktemp -u -t tmp.XXXXXX).bib
fileTwo=$(mktemp -u -t tmp.XXXXXX).bib
touch $fileOne $fileTwo
}
# Finally remove temporary files for all tests.
......
......@@ -28,8 +28,9 @@ writeFileTwo() {
# Initially create temporary files for all tests.
oneTimeSetUp() {
fileOne=$(mktemp -t tmp.XXXXXX.pdf.bib)
fileTwo=$(mktemp -t tmp.XXXXXX.pdf.bib)
fileOne=$(mktemp -u -t tmp.XXXXXX).pdf.bib
fileTwo=$(mktemp -u -t tmp.XXXXXX).pdf.bib
touch $fileOne $fileTwo
}
# Finally remove temporary files for all tests.
......
......@@ -78,9 +78,10 @@ EOF
# Initially create temporary files for all tests.
oneTimeSetUp() {
fileOne=$(mktemp -t tmp.XXXXXX.bib)
fileTwo=$(mktemp -t tmp.XXXXXX.bib)
fileThree=$(mktemp -t tmp.XXXXXX.bib)
fileOne=$(mktemp -u -t tmp.XXXXXX).bib
fileTwo=$(mktemp -u -t tmp.XXXXXX).bib
fileThree=$(mktemp -u -t tmp.XXXXXX).bib
touch $fileOne $fileTwo $fileThree
}
# Finally remove temporary files for all tests.
......
......@@ -21,7 +21,8 @@ writeFileOne() {
# Initially create temporary files for all tests.
oneTimeSetUp() {
fileOne=$(mktemp -t tmp.XXXXXX.pdf.bib)
fileOne=$(mktemp -u -t tmp.XXXXXX).pdf.bib
touch $fileOne
}
# Finally remove temporary files for all tests.
......
......@@ -30,7 +30,8 @@ EOF
# Initially create temporary files for all tests.
oneTimeSetUp() {
fileOne=$(mktemp -t tmp.XXXXXX.bib)
fileOne=$(mktemp -u -t tmp.XXXXXX).bib
touch $fileOne
}
# Finally remove temporary files for all tests.
......
......@@ -51,8 +51,9 @@ writeFileTwo() { # Completely formatted file.
# Initially create temporary files for all tests.
oneTimeSetUp() {
fileOne=$(mktemp -t tmp.XXXXXX.bib)
fileTwo=$(mktemp -t tmp.XXXXXX.bib)
fileOne=$(mktemp -u -t tmp.XXXXXX).bib
fileTwo=$(mktemp -u -t tmp.XXXXXX).bib
touch $fileOne $fileTwo
}
# Finally remove temporary files for all tests.
......
......@@ -70,8 +70,9 @@ EOF
# Initially create temporary files for all tests.
oneTimeSetUp() {
fileOne=$(mktemp -t tmp.XXXXXX.bib)
fileTwo=$(mktemp -t tmp.XXXXXX.bib)
fileOne=$(mktemp -u -t tmp.XXXXXX).bib
fileTwo=$(mktemp -u -t tmp.XXXXXX).bib
touch $fileOne $fileTwo
}
# Finally remove temporary files for all tests.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment