# test/src/Cases: fix incorrect code to find zig_lib_directory · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/423d7b848b1953173df99fde1f83166dc68c2a2c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 423d7b848b1953173df99fde1f83166dc68c2a2c

Requested commit: 423d7b848b1953173df99fde1f83166dc68c2a2c

Commit: 423d7b848b1953173df99fde1f83166dc68c2a2c

Tree: 851bc6bbccfff2b8b85ae60471f535ce5e4b3f58

Author: Manlio Perillo

Committer: Veikka Tuominen

## Message

```
test/src/Cases: fix incorrect code to find zig_lib_directory

The runCases function incorrectly called the introspect.findZigLibDir
function, causing a possible error, depending on the location of the
local cache directory, since the current executable is check-case.

Use findZigLibDirFromSelfExe, passing the zig_exe_path argument.

The current CI scripts work correctly because ZIG_LOCAL_CACHE_DIR is set
to "$(pwd)/zig-local-cache".

Fixes #15044

```

## Parents

- [539e0b0469457e6f3732f9d417cf023d7a1f1b68](https://git.cafe/gitcafe/zig/commit/539e0b0469457e6f3732f9d417cf023d7a1f1b68?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/423d7b848b1953173df99fde1f83166dc68c2a2c?format=markdown)
