1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/development/tools/jq/darwin-strptime-test.patch
Daiderd Jordan 64e550c31f
jq: disable strptime test on darwin
This seems to fail depending on the machine's configuration, probably
something locale or timezone related.
2018-08-01 20:33:44 +02:00

17 lines
392 B
Diff

diff --git a/tests/jq.test b/tests/jq.test
index 4a4018b..f5aa7d5 100644
--- a/src/tests/jq.test
+++ b/src/tests/jq.test
@@ -1144,9 +1144,9 @@ bsearch(4)
[1,2,3]
-4
-[strptime("%Y-%m-%dT%H:%M:%SZ")|(.,mktime)]
+[strptime("%Y-%m-%dT%H:%M:%SZ")|mktime]
"2015-03-05T23:51:47Z"
-[[2015,2,5,23,51,47,4,63],1425599507]
+[1425599507]
strftime("%Y-%m-%dT%H:%M:%SZ")
[2015,2,5,23,51,47,4,63]