]> git.draconx.ca Git - dxcommon.git/blobdiff - tests/macros.at
Fix DX_BASEDIR substitution test.
[dxcommon.git] / tests / macros.at
index 4bf1c69ce9375bcf93912f55a6140defbbe41a50..4c7c8ddecbb7f6edbf615b0280667eb5a57d4e21 100644 (file)
@@ -1,4 +1,4 @@
-dnl Copyright © 2014-2015, 2018 Nick Bowler
+dnl Copyright © 2014-2015, 2018-2019, 2021 Nick Bowler
 dnl
 dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2.
 dnl This is free software: you are free to do what the fuck you want to.
@@ -43,8 +43,8 @@ AC_CONFIG_FILES([test])
 TEST_AUTORECONF
 TEST_CONFIGURE
 
-printf '%s\n' "$srcdir" | sed -e 's:/\./:/:g' -e 's:/\.$::g' \
-                              -e 's:\(.\)//*:\1/:g' >expout
+printf '${top_srcdir}/%s\n' "$srcdir" | sed -e 's:/\./:/:g' -e 's:/\.$::g' \
+                                            -e 's:\(.\)//*:\1/:g' >expout
 AT_CHECK([cat test], [0], [expout])
 
 AT_CLEANUP