Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug sweep #35

Merged
merged 5 commits into from
Aug 25, 2020
Merged

Bug sweep #35

merged 5 commits into from
Aug 25, 2020

Conversation

ptomato
Copy link
Owner

@ptomato ptomato commented Aug 23, 2020

Closes: #11
Closes: #13
Closes: #14
Closes: #16
Closes: #26

@ptomato ptomato force-pushed the 11-handle-search-paths branch from c5a8203 to 2603643 Compare August 23, 2020 23:35
The importer will cache imports with the same name, so we need to make a
fresh copy of the importer with `imports['.']` each time we load a spec
file, in case it has the same name as a preceding spec file.

Closes: #11
@ptomato ptomato force-pushed the 11-handle-search-paths branch from 2603643 to 39c754c Compare August 24, 2020 04:48
@ptomato ptomato changed the title Load spec files with the same name in different directories Bug sweep Aug 24, 2020
Avoid bailing out when using the importer to read in a spec file, if it
has a syntax error. Instead, add a suite and an always-failing spec that
highlights the location of the syntax error. (Previously, an unhelpful
error message would be printed, showing the stack trace of where the
spec was imported, not the location of the syntax error within the
spec.)

Closes: #13
@ptomato ptomato force-pushed the 11-handle-search-paths branch from 39c754c to a161e64 Compare August 24, 2020 05:28
Previously, a nonexistent spec file was ignored, but this can mask a bug
in the build system: you could be passing the wrong paths and not
realize it because no tests failed. Instead, add a suite and an
always-failing spec if the spec file can't be imported due to it not
existing.

Closes: #26
@ptomato ptomato force-pushed the 11-handle-search-paths branch from a161e64 to 19368d8 Compare August 24, 2020 06:12
This may be useful for testing a new version of GJS, or for executing
gnome-shell tests that need to load additional libraries first.

Closes: #14
@ptomato ptomato force-pushed the 11-handle-search-paths branch from 19368d8 to a6e2272 Compare August 24, 2020 06:35
src/config.js Outdated Show resolved Hide resolved
@ptomato ptomato force-pushed the 11-handle-search-paths branch from a6e2272 to 9f02a56 Compare August 25, 2020 04:14
The default debugger is 'gdb --args', but others can be specified.

Closes: #16
@ptomato ptomato force-pushed the 11-handle-search-paths branch from 9f02a56 to e045e0a Compare August 25, 2020 04:59
@ptomato ptomato merged commit 01da266 into master Aug 25, 2020
@ptomato ptomato deleted the 11-handle-search-paths branch August 25, 2020 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants