intl: create correct directory in tst-translit.sh

Depending on parallelism, it's possible for domaindir/existing-locale/LC_MESSAGES
to have not been created yet:
```
msgfmt: error while opening "build/intl/domaindir/existing-locale/LC_MESSAGES/translit.mo" for writing: No such file or directory
make[2]: Leaving directory 'src/intl'
FAIL: intl/tst-translit
original exit status 1
cat: build/intl/tst-translit.out: No such file or directory
make[1]: *** [Makefile:944: test] Error 1
```

If so, the following msgfmt call will fail. Fix the typo in the mkdir call.

Arguably we should split these test preparations to avoid producing binaries
we know won't PASS because their support data is missing.

Reviewed-by: Collin Funk <collin.funk1@gmail.com>
This commit is contained in:
Sam James
2026-07-03 12:10:24 +01:00
parent 84c3993f1f
commit 3c779ab155
+1 -1
View File
@@ -24,7 +24,7 @@ test_program_prefix=$2
objpfx=$3 objpfx=$3
# Create the locale directories. # Create the locale directories.
mkdir -p ${objpfx}localedir/existing-locale/LC_MESSAGES mkdir -p ${objpfx}domaindir/existing-locale/LC_MESSAGES
msgfmt -o ${objpfx}domaindir/existing-locale/LC_MESSAGES/translit.mo \ msgfmt -o ${objpfx}domaindir/existing-locale/LC_MESSAGES/translit.mo \
translit.po translit.po