elua tests: fix distcheck
authorDaniel Kolesa <d.kolesa@samsung.com>
Wed, 27 Feb 2019 17:38:43 +0000 (18:38 +0100)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 8 Mar 2019 11:49:36 +0000 (20:49 +0900)
commit147d68c5983e9abfb9280067572f0bd0e356bb9e
treec3cbf1579f9939d19e13ba076d750741a5af52c2
parentfee01f5b8c54660b2f47fab076a062e4c661efce
elua tests: fix distcheck

The elua tests need to create a temporary file, so chdir'ing
first will not work, as the tests source dir is immutable during
distcheck. Therefore, only chdir once absolutely necessary, and
before that make sure that all file accesses are to temporary
ones.
src/tests/elua/elua_lib.c