From 86e2880d1146aa0df6025ad5d1da84e4a137317e Mon Sep 17 00:00:00 2001 From: Pasquale Date: Tue, 4 Jan 2022 23:14:50 +0100 Subject: [PATCH] tests.concat: added empty case --- pkgs/build-support/trivial-builders/test/concat-test.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/trivial-builders/test/concat-test.nix b/pkgs/build-support/trivial-builders/test/concat-test.nix index 59990a5124ab..5ce435619069 100644 --- a/pkgs/build-support/trivial-builders/test/concat-test.nix +++ b/pkgs/build-support/trivial-builders/test/concat-test.nix @@ -1,4 +1,4 @@ -{ callPackage, lib, pkgs, runCommand, concatText, writeText, hello }: +{ callPackage, lib, pkgs, runCommand, concatText, writeText, hello, emptyFile }: let stri = writeText "pathToTest"; txt1 = stri "abc"; @@ -7,5 +7,6 @@ let in runCommand "test-concatPaths" { } '' diff -U3 <(cat ${txt1} ${txt2}) ${res} + diff -U3 ${concatText "void" []} ${emptyFile} touch $out ''