git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.5 / tests / cli-tests / common / mtime.sh
CommitLineData
648db22b 1. "$COMMON/platform.sh"
2
3MTIME="stat -c %Y"
4case "$UNAME" in
5 Darwin | FreeBSD | OpenBSD | NetBSD) MTIME="stat -f %m" ;;
6esac
7
8assertSameMTime() {
9 MT1=$($MTIME "$1")
10 MT2=$($MTIME "$2")
11 echo MTIME $MT1 $MT2
12 [ "$MT1" = "$MT2" ] || die "mtime on $1 doesn't match mtime on $2 ($MT1 != $MT2)"
13}