summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/string/TimestampInvalid2.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/string/TimestampInvalid2.cmake')
-rw-r--r--Tests/RunCMake/string/TimestampInvalid2.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/string/TimestampInvalid2.cmake b/Tests/RunCMake/string/TimestampInvalid2.cmake
new file mode 100644
index 0000000000..5cc61b8b14
--- /dev/null
+++ b/Tests/RunCMake/string/TimestampInvalid2.cmake
@@ -0,0 +1,3 @@
+set(ENV{SOURCE_DATE_EPOCH} "123trailing-garbage")
+string(TIMESTAMP RESULT "%Y-%m-%d %H:%M:%S" UTC)
+message("RESULT=${RESULT}")