tests: create database with the utf-8 locale

Otherwise tests may fail with wide character errors.
This commit is contained in:
Graham Christensen 2021-01-21 14:42:12 -05:00
parent c64c4aac4f
commit bd99052a6f
No known key found for this signature in database
GPG key ID: FE918C3A98C1030F

View file

@ -1,5 +1,5 @@
use strict; use strict;
system("initdb -D postgres") == 0 or die; system("initdb -D postgres --locale C.UTF-8 ") == 0 or die;
system("pg_ctl -D postgres -o \"-F -p 6433 -h '' -k /tmp \" -w start") == 0 or die; system("pg_ctl -D postgres -o \"-F -p 6433 -h '' -k /tmp \" -w start") == 0 or die;
system("createdb -p 6433 hydra-test-suite") == 0 or die; system("createdb -l C.UTF-8 -p 6433 hydra-test-suite") == 0 or die;
system("hydra-init") == 0 or die; system("hydra-init") == 0 or die;