summaryrefslogtreecommitdiffstats
path: root/nixos/tests
diff options
context:
space:
mode:
authorBas van Dijk <v.dijk.bas@gmail.com>2021-11-09 18:41:14 +0100
committerGitHub <noreply@github.com>2021-11-09 18:41:14 +0100
commit8033c199324616a5ad390281c2fa11c10e9a7b3d (patch)
treed46b4701480031820e1d3e7f378ff88a14d85857 /nixos/tests
parent2103d78e0b3d1e69bbeb3c6c2ce121bb958fdf40 (diff)
parentce0625d981146b5beee99e043dbe74b1832b952e (diff)
Merge pull request #145093 from basvandijk/djbdns-softlimit-fix
djbdns: fix crash due to data ulimit
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/tinydns.nix16
1 files changed, 15 insertions, 1 deletions
diff --git a/nixos/tests/tinydns.nix b/nixos/tests/tinydns.nix
index b80e3451700a..124508bc004b 100644
--- a/nixos/tests/tinydns.nix
+++ b/nixos/tests/tinydns.nix
@@ -21,6 +21,20 @@ import ./make-test-python.nix ({ lib, ...} : {
testScript = ''
nameserver.start()
nameserver.wait_for_unit("tinydns.service")
- nameserver.succeed("host bla.foo.bar 192.168.1.1 | grep '1\.2\.3\.4'")
+
+ # We query tinydns a few times to trigger the bug:
+ #
+ # nameserver # [ 6.105872] mmap: tinydns (842): VmData 331776 exceed data ulimit 300000. Update limits or use boot option ignore_rlimit_data.
+ #
+ # which was reported in https://github.com/NixOS/nixpkgs/issues/119066.
+ # Without the patch <nixpkgs/pkgs/tools/networking/djbdns/softlimit.patch>
+ # it fails on the 10th iteration.
+ nameserver.succeed(
+ """
+ for i in {1..100}; do
+ host bla.foo.bar 192.168.1.1 | grep '1\.2\.3\.4'
+ done
+ """
+ )
'';
})